Nikolay Sivov : advapi32/tests: Accept another error code returned on some WinXP systems.

Alexandre Julliard julliard at winehq.org
Thu Feb 13 13:26:10 CST 2014


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Feb 13 16:45:13 2014 +0400

advapi32/tests: Accept another error code returned on some WinXP systems.

---

 dlls/advapi32/tests/security.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 907c73b..e2e9cd5 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -2679,8 +2679,8 @@ static void test_impersonation_level(void)
     /* can't perform access check when opening object against an anonymous impersonation token */
     todo_wine {
     error = RegOpenKeyExA(HKEY_CURRENT_USER, "Software", 0, KEY_READ, &hkey);
-    ok(error == ERROR_INVALID_HANDLE || error == ERROR_CANT_OPEN_ANONYMOUS,
-       "RegOpenKeyEx should have failed with ERROR_INVALID_HANDLE or ERROR_CANT_OPEN_ANONYMOUS instead of %d\n", error);
+    ok(error == ERROR_INVALID_HANDLE || error == ERROR_CANT_OPEN_ANONYMOUS || error == ERROR_BAD_IMPERSONATION_LEVEL,
+       "RegOpenKeyEx failed with %d\n", error);
     }
     RevertToSelf();
 




More information about the wine-cvs mailing list