Fail gracefully on permission denied.
This commit is contained in:
parent
2813da13a3
commit
163f5ab923
|
@ -357,7 +357,8 @@ static void test_reg_delete_key()
|
|||
DWORD ret;
|
||||
|
||||
ret = RegDeleteKey(hkey_main, NULL);
|
||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %ld\n", ret);
|
||||
ok(ret == ERROR_INVALID_PARAMETER || ret == ERROR_ACCESS_DENIED,
|
||||
"expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld\n", ret);
|
||||
}
|
||||
|
||||
static void test_reg_save_key()
|
||||
|
|
Loading…
Reference in New Issue