Commit b9b25c73 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent 192dbae5
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment