kernel32/tests: Fix test failures on win7.

This commit is contained in:
Detlef Riekenberg 2012-08-03 05:12:59 +02:00 committed by Alexandre Julliard
parent 55d811351a
commit 9aacf4ce6f
1 changed files with 7 additions and 0 deletions

View File

@ -287,6 +287,13 @@ static void crash_and_debug(HKEY hkey, const char* argv0, const char* dbgtasks)
}
ret=RegSetValueExA(hkey, "auto", 0, REG_SZ, (BYTE*)"1", 2);
if (ret == ERROR_ACCESS_DENIED)
{
skip_crash_and_debug = TRUE;
skip("No write access to change the debugger\n");
return;
}
ok(ret == ERROR_SUCCESS, "unable to set AeDebug/auto: ret=%d\n", ret);
get_file_name(dbglog);