Fix off-by-one error in determining number of arguments.
This commit is contained in:
parent
cff905837f
commit
3bdfc9f662
|
@ -191,7 +191,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
|
|||
}
|
||||
if (*arg) {
|
||||
*d='\0';
|
||||
argv[argc]=arg;
|
||||
argv[argc++]=arg;
|
||||
}
|
||||
if (numargs)
|
||||
*numargs=argc;
|
||||
|
|
Loading…
Reference in New Issue