shell32/tests: Tmpdir shouldn't end with a backslash.

Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2020-03-22 13:46:12 +02:00 committed by Alexandre Julliard
parent b50e79414e
commit 971e7e22e0
1 changed files with 3 additions and 4 deletions

View File

@ -2690,16 +2690,15 @@ 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(tmpdir, "c:\\");
else
GetTempPathA(sizeof(filename), filename);
GetTempPathA(sizeof(tmpdir), tmpdir);
/* 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
* prevent the TestBot from detecting new failures.
*/
strcpy(tmpdir, filename);
strcat(tmpdir, "\\wtShlexecDir");
strcat(tmpdir, "wtShlexecDir");
GetLongPathNameA(tmpdir, tmpdir, sizeof(tmpdir));
DeleteFileA( tmpdir );
rc = CreateDirectoryA( tmpdir, NULL );