kernel32/tests: Skip some tests if not allowed to modify the image file execution options.
This commit is contained in:
parent
405c3ef483
commit
752bb66b65
|
@ -724,6 +724,11 @@ static void test_debug_heap( const char *argv0, DWORD flags )
|
|||
if (!strcmp( keyname + strlen(keyname) - 3, ".so" )) keyname[strlen(keyname) - 3] = 0;
|
||||
|
||||
err = RegCreateKeyA( HKEY_LOCAL_MACHINE, keyname, &hkey );
|
||||
if (err == ERROR_ACCESS_DENIED)
|
||||
{
|
||||
skip("Not authorized to change the image file execution options\n");
|
||||
return;
|
||||
}
|
||||
ok( !err, "failed to create '%s' error %u\n", keyname, err );
|
||||
if (err) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue