Commit ee698506 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

wscript: Correctly use CommandLineToArgvW.

parent c4a3651e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment