Commit 9117e1c4 authored by Jakob Eriksson's avatar Jakob Eriksson Committed by Alexandre Julliard

ERROR_PRIVILEGE_NOT_HELD can be returned for NT4.

parent 7fb79e34
...@@ -357,6 +357,7 @@ static void test_reg_save_key() ...@@ -357,6 +357,7 @@ static void test_reg_save_key()
DWORD ret; DWORD ret;
ret = RegSaveKey(hkey_main, "saved_key", NULL); ret = RegSaveKey(hkey_main, "saved_key", NULL);
if (ERROR_PRIVILEGE_NOT_HELD == ret) return;
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret); ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
} }
...@@ -366,6 +367,7 @@ static void test_reg_load_key() ...@@ -366,6 +367,7 @@ static void test_reg_load_key()
HKEY hkHandle; HKEY hkHandle;
ret = RegLoadKey(HKEY_LOCAL_MACHINE, "Test", "saved_key"); ret = RegLoadKey(HKEY_LOCAL_MACHINE, "Test", "saved_key");
if (ERROR_PRIVILEGE_NOT_HELD == ret) return;
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret); ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
ret = RegOpenKey(HKEY_LOCAL_MACHINE, "Test", &hkHandle); ret = RegOpenKey(HKEY_LOCAL_MACHINE, "Test", &hkHandle);
......
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