shell32: Ensure that commandline is null-terminated when no parameters are given.
Sebastian Lackner
sebastian at fds-team.de
Thu Jul 16 21:54:24 CDT 2015
---
dlls/shell32/shlexec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index 3196149..ba83a57 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -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);
--
2.4.5
More information about the wine-patches
mailing list