Thomas Faber : wscript: Correctly use CommandLineToArgvW.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 30 10:12:58 CDT 2015
Module: wine
Branch: master
Commit: ee698506c8d35131c389ce2f4e936be065653524
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee698506c8d35131c389ce2f4e936be065653524
Author: Thomas Faber <thomas.faber at reactos.org>
Date: Sun Mar 29 08:25:41 2015 +0200
wscript: Correctly use CommandLineToArgvW.
---
programs/wscript/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/wscript/main.c b/programs/wscript/main.c
index d354c90..3537f9d 100644
--- a/programs/wscript/main.c
+++ b/programs/wscript/main.c
@@ -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);
- argv = CommandLineToArgvW(cmdline, &argc);
+ argv = CommandLineToArgvW(GetCommandLineW(), &argc);
if(!argv)
return 1;
- for(i=0; i<argc; i++) {
+ for(i=1; i<argc; i++) {
if(*argv[i] == '/' || *argv[i] == '-') {
if(!set_host_properties(argv[i]))
return 1;
More information about the wine-cvs
mailing list