Fix off-by-one error in determining number of arguments.

This commit is contained in:
Steve Lustbader 2002-10-15 02:17:55 +00:00 committed by Alexandre Julliard
parent cff905837f
commit 3bdfc9f662
1 changed files with 1 additions and 1 deletions

View File

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