mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[WSCRIPT]
- Correctly use CommandLineToArgvW. Fixes cscript crashing on start. CORE-9439 #resolve svn path=/trunk/; revision=67001
This commit is contained in:
parent
06ef60970d
commit
8c6b9e9841
1 changed files with 2 additions and 2 deletions
|
@ -412,11 +412,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;
|
||||
|
|
Loading…
Reference in a new issue