From 12a2b144f3eaec5da6c7cec0217806268084dace Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Fri, 16 Sep 2016 14:01:33 -0700 Subject: [PATCH] Only drop the SEM_NOGPFAULTERRORBOX flag when calling SetErrorMode (ELECTRON_DEFAULT_ERROR_MODE) --- atom/common/node_bindings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index d6ad8045bd77..1e3fac3874f3 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -145,7 +145,7 @@ void NodeBindings::Initialize() { // it back if user wants to show it. std::unique_ptr env(base::Environment::Create()); if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE")) - SetErrorMode(0); + SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX); #endif }