diff --git a/handler/win/fastfail_test_program.cc b/handler/win/fastfail_test_program.cc index 510ee56e..346aa68a 100644 --- a/handler/win/fastfail_test_program.cc +++ b/handler/win/fastfail_test_program.cc @@ -129,6 +129,10 @@ int CrashyMain(int argc, wchar_t* argv[]) { return EXIT_FAILURE; } + // Some versions of python call SetErrorMode() which extends to children, and + // prevents the WerFault infrastructure from running. + SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX); + if (type == L"cf") CfgCrash(); if (type == L"ff")