http://bugs.winehq.org/show_bug.cgi?id=23321
Summary: ShellExecuteEx can fail for paths with spaces in them Product: Wine Version: 1.2-rc4 Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: shell32 AssignedTo: wine-bugs@winehq.org ReportedBy: basinilya@gmail.com CC: wylda@volny.cz
+++ This bug was initially created as a clone of Bug #7900 +++
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 DOES help.
tests: 1) this test case is still marked for todo_wine http://source.winehq.org/source/dlls/shell32/tests/shlexec.c?v=wine-1.2-rc4#...
2) similar testcase by me http://source.winehq.org/source/dlls/shell32/tests/shlexec.c?v=wine-1.2-rc4#...
Patch exists, but not applied yet, because it removes possibly important block of code.