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

oldstable
Ken Thomases 2014-12-22 20:05:43 -06:00 committed by Alexandre Julliard
parent 299a48075d
commit 1449090985
1 changed files with 1 additions and 1 deletions

View File

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