shell32: fix program search in ShellExecuteEx, quote program name if it contains spaces (resend)

Juan Lang juan.lang at
Fri Aug 14 15:43:21 CDT 2009

Hi Stefan,

>> +    if((needs_quote = NULL != strstrW(wszApplicationName,wSpace)))
>> +        len +=2;
> i don't understand what you mean here with "complicated", please explain it.

Questions of style are always in the eye of the beholder, aren't they?  ;-)

I'd say breaking the statement into two would be easier to understand:
needs_quote = strstrW(wszApplicationName, wSpace) != NULL;
if (needs_quote)
    len += 2;


More information about the wine-devel mailing list