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

Stefan Leichter Stefan.Leichter at
Thu Aug 13 08:47:07 CDT 2009

This patch fixes bug 19666
The directory with the installer contains the installer itself  
named "Foxit Reader Setup.exe" and the program to be installed named "Foxit 

ShellExecuteEx passed the filename "Foxit Reader Setup.exe" without quotes to 
CreateProcess which always picked "Foxit 
Reader.exe". Therefore the install failed.

The tests passes one Win2k and WinXP
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ShellExecuteEx.diff
Type: text/x-diff
Size: 4644 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list