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
ee698506
Commit
ee698506
authored
Mar 29, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Mar 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript: Correctly use CommandLineToArgvW.
parent
c4a3651e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.c
programs/wscript/main.c
+2
-2
No files found.
programs/wscript/main.c
View file @
ee698506
...
@@ -426,11 +426,11 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
...
@@ -426,11 +426,11 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
WINE_TRACE
(
"(%p %p %s %x)
\n
"
,
hInst
,
hPrevInst
,
wine_dbgstr_w
(
cmdline
),
cmdshow
);
WINE_TRACE
(
"(%p %p %s %x)
\n
"
,
hInst
,
hPrevInst
,
wine_dbgstr_w
(
cmdline
),
cmdshow
);
argv
=
CommandLineToArgvW
(
cmdline
,
&
argc
);
argv
=
CommandLineToArgvW
(
GetCommandLineW
()
,
&
argc
);
if
(
!
argv
)
if
(
!
argv
)
return
1
;
return
1
;
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
*
argv
[
i
]
==
'/'
||
*
argv
[
i
]
==
'-'
)
{
if
(
*
argv
[
i
]
==
'/'
||
*
argv
[
i
]
==
'-'
)
{
if
(
!
set_host_properties
(
argv
[
i
]))
if
(
!
set_host_properties
(
argv
[
i
]))
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