wscript: Correctly use CommandLineToArgvW.

This commit is contained in:
Thomas Faber 2015-03-29 08:25:41 +02:00 committed by Alexandre Julliard
parent c4a3651e34
commit ee698506c8
1 changed files with 2 additions and 2 deletions

View File

@ -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;