Only drop the SEM_NOGPFAULTERRORBOX flag when calling SetErrorMode (ELECTRON_DEFAULT_ERROR_MODE)

This commit is contained in:
Milan Burda 2016-09-16 14:01:33 -07:00
parent d1274bb79f
commit 12a2b144f3

View file

@ -145,7 +145,7 @@ void NodeBindings::Initialize() {
// it back if user wants to show it.
std::unique_ptr<base::Environment> env(base::Environment::Create());
if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE"))
SetErrorMode(0);
SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX);
#endif
}