Commit 14490909 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

shell32: Don't append a trailing space to the arguments in a shell link if the…

shell32: Don't append a trailing space to the arguments in a shell link if the command info has an empty parameters string.
parent 299a4807
......@@ -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 );
......
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