http://bugs.winehq.org/show_bug.cgi?id=7900
Summary: ShellExecuteEx can fail for paths with spaces in them Product: Wine Version: CVS Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-shell32 AssignedTo: wine-bugs@winehq.org ReportedBy: ken@codeweavers.com
If you pass an lpFile with space(s) in its name, and if there exists another file or directory whose path matches the lpFile truncated at any of its spaces, then ShellExecuteEx attempts to open/execute that other file instead.
Passing an lpFile with embedded quotes surrounding the path doesn't help.