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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 17 08:03:40 CDT 2015


Module: wine
Branch: master
Commit: 7d3f13a129e4c0dd410208b03bf2adfae5398731
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7d3f13a129e4c0dd410208b03bf2adfae5398731

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Fri Jul 17 04:54:24 2015 +0200

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

---

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




More information about the wine-cvs mailing list