shell32/tests: Win 2k doesn't cope with spaces in the path.

oldstable
Huw Davies 2015-07-06 15:02:58 +01:00 committed by Alexandre Julliard
parent c5053f5712
commit f5e16e0638
1 changed files with 6 additions and 1 deletions

View File

@ -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 );