mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 19:10:35 +00:00
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…
x
Reference in New Issue
Block a user