Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fa9fec61
Commit
fa9fec61
authored
Nov 12, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Nov 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript: Get extension name by strrchrW instead of strchrW.
parent
b6f934fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
main.c
programs/wscript/main.c
+4
-6
No files found.
programs/wscript/main.c
View file @
fa9fec61
...
@@ -361,7 +361,7 @@ static BOOL set_host_properties(const WCHAR *prop)
...
@@ -361,7 +361,7 @@ static BOOL set_host_properties(const WCHAR *prop)
int
WINAPI
wWinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrevInst
,
LPWSTR
cmdline
,
int
cmdshow
)
int
WINAPI
wWinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrevInst
,
LPWSTR
cmdline
,
int
cmdshow
)
{
{
const
WCHAR
*
ex
t
,
*
filename
=
NULL
;
WCHAR
*
ext
,
*
filepar
t
,
*
filename
=
NULL
;
IActiveScriptParse
*
parser
;
IActiveScriptParse
*
parser
;
IActiveScript
*
script
;
IActiveScript
*
script
;
WCHAR
**
argv
;
WCHAR
**
argv
;
...
@@ -391,14 +391,12 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
...
@@ -391,14 +391,12 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
WINE_FIXME
(
"No file name specified
\n
"
);
WINE_FIXME
(
"No file name specified
\n
"
);
return
1
;
return
1
;
}
}
res
=
GetFullPathNameW
(
filename
,
sizeof
(
scriptFullName
)
/
sizeof
(
WCHAR
),
scriptFullName
,
NULL
);
res
=
GetFullPathNameW
(
filename
,
sizeof
(
scriptFullName
)
/
sizeof
(
WCHAR
),
scriptFullName
,
&
filepart
);
if
(
!
res
||
res
>
sizeof
(
scriptFullName
)
/
sizeof
(
WCHAR
))
if
(
!
res
||
res
>
sizeof
(
scriptFullName
)
/
sizeof
(
WCHAR
))
return
1
;
return
1
;
ext
=
strchrW
(
filename
,
'.'
);
ext
=
strrchrW
(
filepart
,
'.'
);
if
(
!
ext
)
if
(
!
ext
||
!
get_engine_clsid
(
ext
,
&
clsid
))
{
ext
=
filename
;
if
(
!
get_engine_clsid
(
ext
,
&
clsid
))
{
WINE_FIXME
(
"Could not find engine for %s
\n
"
,
wine_dbgstr_w
(
ext
));
WINE_FIXME
(
"Could not find engine for %s
\n
"
,
wine_dbgstr_w
(
ext
));
return
1
;
return
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment