Paul Vriens : shell32/tests: Fix a test failure on Win95/NT4.

Alexandre Julliard julliard at winehq.org
Thu Sep 10 09:08:34 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Sep 10 10:12:35 2009 +0200

shell32/tests: Fix a test failure on Win95/NT4.

---

 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, "");




More information about the wine-cvs mailing list