ntdll/tests: Skip some tests if not allowed to modify image file execution options.

This commit is contained in:
Francois Gouget 2011-09-18 19:41:27 +02:00 committed by Alexandre Julliard
parent 752bb66b65
commit 344ef82b68
1 changed files with 5 additions and 0 deletions

View File

@ -1198,6 +1198,11 @@ static void test_redirection(void)
pRtlInitUnicodeString( &str, classes64W );
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 );
pRtlInitUnicodeString( &str, classes32W );