Commit 3bdfc9f6 authored by Steve Lustbader's avatar Steve Lustbader Committed by Alexandre Julliard

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

parent cff90583
......@@ -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;
......
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