[PATCH 2/2] shell32/tests: Win 2k doesn't cope with spaces in the path.
Huw Davies
huw at codeweavers.com
Mon Jul 6 09:02:58 CDT 2015
---
dlls/shell32/tests/shlexec.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 0d2773d..0972b06 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -2523,7 +2523,12 @@ static void init_test(void)
"unable to find argv0!\n");
}
- GetTempPathA(sizeof(filename), filename);
+ /* Older versions (win 2k) fail tests if there is a space in
+ the path. */
+ if (dllver.dwMajorVersion <= 5)
+ strcpy(filename, "c:\\");
+ else
+ GetTempPathA(sizeof(filename), filename);
GetTempFileNameA(filename, "wt", 0, tmpdir);
GetLongPathNameA(tmpdir, tmpdir, sizeof(tmpdir));
DeleteFileA( tmpdir );
--
1.8.0
More information about the wine-patches
mailing list