Austin English : advapi32/tests: fix a couple failures on Vista.
Alexandre Julliard
julliard at winehq.org
Tue Oct 28 10:02:30 CDT 2008
Module: wine
Branch: master
Commit: 955759381d58edc7acf77847cbcbbe70c250d53a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=955759381d58edc7acf77847cbcbbe70c250d53a
Author: Austin English <austinenglish at gmail.com>
Date: Mon Oct 27 15:24:52 2008 -0500
advapi32/tests: fix a couple failures on Vista.
---
dlls/advapi32/tests/security.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index d4f532d..db955cd 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -1319,8 +1319,8 @@ static void test_LookupAccountSid(void)
real_dom_sizeA = MAX_PATH;
ret = LookupAccountSidA("deepthought", pUsersSid, accountA, &real_acc_sizeA, domainA, &real_dom_sizeA, &use);
ok(!ret, "LookupAccountSidA() Expected FALSE got TRUE\n");
- ok(GetLastError() == RPC_S_SERVER_UNAVAILABLE,
- "LookupAccountSidA() Expected RPC_S_SERVER_UNAVAILABLE, got %u\n", GetLastError());
+ ok(GetLastError() == RPC_S_SERVER_UNAVAILABLE || GetLastError() == RPC_S_INVALID_NET_ADDR /* Vista */,
+ "LookupAccountSidA() Expected RPC_S_SERVER_UNAVAILABLE or RPC_S_INVALID_NET_ADDR, got %u\n", GetLastError());
/* native windows crashes if domainW or accountW is NULL */
@@ -1664,8 +1664,8 @@ static void test_LookupAccountName(void)
domain_size = 0;
ret = LookupAccountNameA("deepthought", NULL, NULL, &sid_size, NULL, &domain_size, &sid_use);
ok(!ret, "Expected 0, got %d\n", ret);
- 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 /* Vista */,
+ "Expected RPC_S_SERVER_UNAVAILABLE or RPC_S_INVALID_NET_ADDR, got %d\n", GetLastError());
ok(sid_size == 0, "Expected 0, got %d\n", sid_size);
ok(domain_size == 0, "Expected 0, got %d\n", domain_size);
More information about the wine-cvs
mailing list