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

This commit is contained in:
Nikolay Sivov 2014-02-13 16:45:13 +04:00 committed by Alexandre Julliard
parent 9c76ccfda1
commit 9756550c25
1 changed files with 2 additions and 2 deletions

View File

@ -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();