shell32/tests: Win 2k doesn't cope with spaces in the path.
This commit is contained in:
parent
c5053f5712
commit
f5e16e0638
|
@ -2523,7 +2523,12 @@ static void init_test(void)
|
||||||
"unable to find argv0!\n");
|
"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);
|
GetTempFileNameA(filename, "wt", 0, tmpdir);
|
||||||
GetLongPathNameA(tmpdir, tmpdir, sizeof(tmpdir));
|
GetLongPathNameA(tmpdir, tmpdir, sizeof(tmpdir));
|
||||||
DeleteFileA( tmpdir );
|
DeleteFileA( tmpdir );
|
||||||
|
|
Loading…
Reference in New Issue