advapi32: Fix a test failure on a non-admin XP system.
This commit is contained in:
parent
192dbae550
commit
b9b25c73e0
|
@ -1161,7 +1161,9 @@ static void test_reg_query_value(void)
|
|||
SetLastError(0xdeadbeef);
|
||||
size = MAX_PATH;
|
||||
ret = RegQueryValueA((HKEY)0xcafebabe, "subkey", val, &size);
|
||||
ok(ret == ERROR_INVALID_HANDLE || ret == ERROR_BADKEY, /* Windows 98 returns BADKEY */
|
||||
ok(ret == ERROR_INVALID_HANDLE ||
|
||||
ret == ERROR_BADKEY || /* Windows 98 returns BADKEY */
|
||||
ret == ERROR_ACCESS_DENIED, /* non-admin winxp */
|
||||
"Expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %d\n", ret);
|
||||
ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError());
|
||||
|
||||
|
|
Loading…
Reference in New Issue