Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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
Hide 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)
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
;
IActiveScript
*
script
;
WCHAR
**
argv
;
...
...
@@ -391,14 +391,12 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
WINE_FIXME
(
"No file name specified
\n
"
);
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
))
return
1
;
ext
=
strchrW
(
filename
,
'.'
);
if
(
!
ext
)
ext
=
filename
;
if
(
!
get_engine_clsid
(
ext
,
&
clsid
))
{
ext
=
strrchrW
(
filepart
,
'.'
);
if
(
!
ext
||
!
get_engine_clsid
(
ext
,
&
clsid
))
{
WINE_FIXME
(
"Could not find engine for %s
\n
"
,
wine_dbgstr_w
(
ext
));
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