advapi32: Fix a test failure on a non-admin XP system.

This commit is contained in:
James Hawkins 2008-06-29 18:13:11 -05:00 committed by Alexandre Julliard
parent 192dbae550
commit b9b25c73e0
1 changed files with 3 additions and 1 deletions

View File

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