ntdll/tests: Skip some registry tests when missing elevated privileges.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2020-12-14 16:06:06 +01:00 committed by Alexandre Julliard
parent 948e08152b
commit cbff1b9540
1 changed files with 5 additions and 0 deletions

View File

@ -1458,6 +1458,11 @@ static void test_redirection(void)
pRtlInitUnicodeString( &str, wine64W );
status = pNtCreateKey( &root64, KEY_WOW64_64KEY | KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 );
if (status == STATUS_ACCESS_DENIED)
{
skip("Not authorized to modify KEY_WOW64_64KEY, no redirection\n");
return;
}
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
pRtlInitUnicodeString( &str, wine32W );