Merge pull request #7231 from miniak/default-error-mode
Fix ELECTRON_DEFAULT_ERROR_MODE
This commit is contained in:
commit
1fd819e500
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ void NodeBindings::Initialize() {
|
||||||
// it back if user wants to show it.
|
// it back if user wants to show it.
|
||||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||||
if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE"))
|
if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE"))
|
||||||
SetErrorMode(0);
|
SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue