Alistair Leslie-Hughes : advapi32: Fix test under w2k8.

Alexandre Julliard julliard at winehq.org
Mon Aug 18 10:46:37 CDT 2008


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Thu Aug  7 21:01:58 2008 +1000

advapi32: Fix test under w2k8.

---

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

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index cd6d82c..829cfe7 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -66,7 +66,8 @@ static void test_open_scm(void)
     scm_handle = OpenSCManagerA("DOESNOTEXIST", SERVICES_ACTIVE_DATABASEA, SC_MANAGER_CONNECT);
     ok(!scm_handle, "Expected failure\n");
     todo_wine
-    ok(GetLastError() == RPC_S_SERVER_UNAVAILABLE, "Expected RPC_S_SERVER_UNAVAILABLE, got %d\n", GetLastError());
+    ok(GetLastError() == RPC_S_SERVER_UNAVAILABLE || GetLastError() == RPC_S_INVALID_NET_ADDR /* w2k8 */,
+       "Expected RPC_S_SERVER_UNAVAILABLE or RPC_S_INVALID_NET_ADDR, got %d\n", GetLastError());
     CloseServiceHandle(scm_handle); /* Just in case */
 
     /* Proper call with an empty hostname */




More information about the wine-cvs mailing list