From f5e16e0638e83224067685d0d94c143fb209d344 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 6 Jul 2015 15:02:58 +0100 Subject: [PATCH] shell32/tests: Win 2k doesn't cope with spaces in the path. --- 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 0d2773d48a6..0972b064c77 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 ); -- 2.11.4.GIT