[PATCH 7/7] Fix a test failure on Win95/NT4

Paul Vriens Paul.Vriens.Wine at gmail.com
Thu Sep 10 03:12:35 CDT 2009


---
 dlls/shell32/tests/shelllink.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index ba2bb33..2f20200 100644
--- a/dlls/shell32/tests/shelllink.c
+++ b/dlls/shell32/tests/shelllink.c
@@ -165,7 +165,9 @@ static void test_get_set(void)
     {
         IShellLinkW_Release(slW);
         r = IShellLinkA_SetPath(sl, NULL);
-        ok(r==E_INVALIDARG, "SetPath failed (0x%08x)\n", r);
+        ok(r==E_INVALIDARG ||
+           broken(r==S_OK), /* Some Win95 and NT4 */
+           "SetPath failed (0x%08x)\n", r);
     }
 
     r = IShellLinkA_SetPath(sl, "");
-- 
1.6.2.5


--------------060602070802070209050804--



More information about the wine-patches mailing list