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

Alexandre Julliard julliard at winehq.org
Mon Mar 23 15:47:09 CDT 2020


Module: wine
Branch: master
Commit: 971e7e22e069b8421fbd738798bd9fee79efe771
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=971e7e22e069b8421fbd738798bd9fee79efe771

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Sun Mar 22 13:46:12 2020 +0200

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

Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/tests/shlexec.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index f6f384bbe0..6d099587d7 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -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 );




More information about the wine-cvs mailing list