Ken Thomases : shell32: Don' t append a trailing space to the arguments in a shell link if the command info has an empty parameters string.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 23 15:21:00 CST 2014


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

Author: Ken Thomases <ken at codeweavers.com>
Date:   Mon Dec 22 20:05:43 2014 -0600

shell32: Don't append a trailing space to the arguments in a shell link if the command info has an empty parameters string.

---

 dlls/shell32/shelllink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index ebcaa25..bd3507e 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -2449,7 +2449,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
         args[0] = 0;
         if ( This->sArgs )
             lstrcatW( args, This->sArgs );
-        if ( iciex->lpParametersW )
+        if ( iciex->lpParametersW && iciex->lpParametersW[0] )
         {
             static const WCHAR space[] = { ' ', 0 };
             lstrcatW( args, space );




More information about the wine-cvs mailing list