ntdll/tests: Skip some tests if not allowed to modify image file execution options.
This commit is contained in:
parent
752bb66b65
commit
344ef82b68
|
@ -1198,6 +1198,11 @@ static void test_redirection(void)
|
||||||
|
|
||||||
pRtlInitUnicodeString( &str, classes64W );
|
pRtlInitUnicodeString( &str, classes64W );
|
||||||
status = pNtCreateKey( &key64, KEY_WOW64_64KEY | KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 );
|
status = pNtCreateKey( &key64, KEY_WOW64_64KEY | KEY_ALL_ACCESS, &attr, 0, 0, 0, 0 );
|
||||||
|
if (status == STATUS_ACCESS_DENIED)
|
||||||
|
{
|
||||||
|
skip("Not authorized to modify the Classes key\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
|
ok( status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status );
|
||||||
|
|
||||||
pRtlInitUnicodeString( &str, classes32W );
|
pRtlInitUnicodeString( &str, classes32W );
|
||||||
|
|
Loading…
Reference in New Issue