Commit 7d3f13a1 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

shell32: Ensure that commandline is null-terminated when no parameters are given.

parent 2294d3ba
......@@ -1774,6 +1774,7 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
memcpy(wcmd+1, wszApplicationName, len * sizeof(WCHAR));
len++;
wcmd[len++] = '\"';
wcmd[len] = 0;
if (sei_tmp.lpParameters[0]) {
wcmd[len++] = ' ';
strcpyW(wcmd+len, wszParameters);
......
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