diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c index f6f384bbe0..5d074671c5 100644 --- a/dlls/shell32/tests/shlexec.c +++ b/dlls/shell32/tests/shlexec.c @@ -2690,9 +2690,12 @@ static void init_test(void) /* Older versions (win 2k) fail tests if there is a space in the path. */ if (dllver.dwMajorVersion <= 5) - strcpy(filename, "c:\\"); + strcpy(filename, "c:"); else + { GetTempPathA(sizeof(filename), filename); + filename[strlen(filename)-1] = '\0'; + } /* In case of a failure it is necessary to show the path that was passed to * ShellExecute(). That means the paths must not be randomized so as not to