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

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

View File

@ -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;