[PATCH 1/3] shell32/tests: Added to-do test showing a bug with file paths with spaces.

Ken Thomases ken at codeweavers.com
Tue Apr 17 08:20:57 CDT 2007


If ShellExecuteEx is asked to execute a file which has a space in its path,
and if there exists a "masking" file whose name matches the path truncated
at a space, then ShellExecuteEx launches the masking file instead.
See http://bugs.winehq.org/show_bug.cgi?id=7900
---
  dlls/shell32/tests/shlexec.c |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index f16cb72..af07de0 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -480,6 +480,8 @@ static const char* testfiles[]=
     "%s\\test file.shl",
     "%s\\test file.shlfoo",
     "%s\\test file.sfe",
+    "%s\\masked file.shlexec",
+    "%s\\masked",
     NULL
 };
 
@@ -517,6 +519,9 @@ static filename_tests_t filename_tests[]=
     {"QuotedLowerL", "%s\\test file.shlexec",   0x0, 33},
     {"QuotedUpperL", "%s\\test file.shlexec",   0x0, 33},
 
+    /* Test file masked due to space */
+    {NULL,           "%s\\masked file.shlexec",   0x1, 33},
+
     {NULL, NULL, 0}
 };
 


More information about the wine-patches mailing list