=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: advapi32/tests: Allow ERROR_ACCESS_DENIED for newer Win10.
Alexandre Julliard
julliard at winehq.org
Mon Sep 10 16:01:08 CDT 2018
Module: wine
Branch: master
Commit: 56885a1ca99b03c2395b2a555ed5e6fca4ad7178
URL: https://source.winehq.org/git/wine.git/?a=commit;h=56885a1ca99b03c2395b2a555ed5e6fca4ad7178
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Sep 9 14:35:28 2018 +0200
advapi32/tests: Allow ERROR_ACCESS_DENIED for newer Win10.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 aebf3b8..3ca151d 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -3149,8 +3149,8 @@ static void test_impersonation_level(void)
/* can't perform access check when opening object against an identification impersonation token */
error = RegOpenKeyExA(HKEY_CURRENT_USER, "Software", 0, KEY_READ, &hkey);
todo_wine {
- ok(error == ERROR_INVALID_HANDLE || error == ERROR_BAD_IMPERSONATION_LEVEL,
- "RegOpenKeyEx should have failed with ERROR_INVALID_HANDLE or ERROR_BAD_IMPERSONATION_LEVEL instead of %d\n", error);
+ ok(error == ERROR_INVALID_HANDLE || error == ERROR_BAD_IMPERSONATION_LEVEL || error == ERROR_ACCESS_DENIED,
+ "RegOpenKeyEx should have failed with ERROR_INVALID_HANDLE, ERROR_BAD_IMPERSONATION_LEVEL or ERROR_ACCESS_DENIED instead of %d\n", error);
}
ret = PrivilegeCheck(Token, PrivilegeSet, &AccessGranted);
ok(ret, "PrivilegeCheck for SecurityIdentification failed with error %d\n", GetLastError());
More information about the wine-cvs
mailing list