Paul Vriens : rpcrt4/tests: Don't crash on WinXP SP3.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 14:19:31 CST 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Feb 11 16:45:36 2008 +0100

rpcrt4/tests: Don't crash on WinXP SP3.

---

 dlls/rpcrt4/tests/rpc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c
index d2620c1..57973e5 100644
--- a/dlls/rpcrt4/tests/rpc.c
+++ b/dlls/rpcrt4/tests/rpc.c
@@ -388,7 +388,8 @@ static void test_towers(void)
     ok(ret == RPC_S_OK, "TowerConstruct failed with error %ld\n", ret);
     ret = TowerExplode(tower, NULL, NULL, NULL, NULL, &address);
     ok(ret == RPC_S_OK, "TowerExplode failed with error %ld\n", ret);
-    ok(!strcmp(address, ""), "address was \"%s\" instead of \"\"\n", address);
+    /* Windows XP SP3 sets address to NULL */
+    ok(!address || !strcmp(address, ""), "address was \"%s\" instead of \"\"\n or NULL (XP SP3)", address);
 
     I_RpcFree(address);
     I_RpcFree(tower);




More information about the wine-cvs mailing list