Huw Davies : shell32/tests: Win 2k doesn't cope with spaces in the path.
Module: wine Branch: master Commit: f5e16e0638e83224067685d0d94c143fb209d344 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5e16e0638e83224067685d0d9... Author: Huw Davies <huw(a)codeweavers.com> Date: Mon Jul 6 15:02:58 2015 +0100 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 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 );
participants (1)
-
Alexandre Julliard