Paul Vriens : shlwapi/tests: Fix a test on Vista.

Alexandre Julliard julliard at winehq.org
Wed Jun 25 04:47:07 CDT 2008


Module: wine
Branch: master
Commit: f88a3c569e446cde3b4ec5e0987d5171487ed26b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f88a3c569e446cde3b4ec5e0987d5171487ed26b

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Tue Jun 24 19:01:33 2008 +0200

shlwapi/tests: Fix a test on Vista.

---

 dlls/shlwapi/tests/path.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c
index b2d2a9e..6f55395 100644
--- a/dlls/shlwapi/tests/path.c
+++ b/dlls/shlwapi/tests/path.c
@@ -537,9 +537,13 @@ static void test_PathCombineA(void)
     SetLastError(0xdeadbeef);
     lstrcpyA(dest, "control");
     str = PathCombineA(dest, "relative\\dir", "\\one\\two\\three\\");
-    ok(str == dest, "Expected str == dest, got %p\n", str);
-    ok(!lstrcmp(str, "one\\two\\three\\"), "Expected one\\two\\three\\, got %s\n", str);
     ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError());
+    /* Vista fails which probably makes sense as PathCombineA expects an absolute dir */
+    if (str)
+    {
+        ok(str == dest, "Expected str == dest, got %p\n", str);
+        ok(!lstrcmp(str, "one\\two\\three\\"), "Expected one\\two\\three\\, got %s\n", str);
+    }
 
     /* try forward slashes */
     SetLastError(0xdeadbeef);




More information about the wine-cvs mailing list