Commit f5e16e06 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent c5053f57
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment