windows: call SetErrorMode on startup to ask the system not to handle critical errors

This commit is contained in:
Igor Zinkovsky 2011-11-01 15:23:07 -07:00
parent 90b0b7d099
commit 7a53924aed

View File

@ -40,6 +40,10 @@ static uv_once_t uv_default_loop_init_guard_ = UV_ONCE_INIT;
static void uv_init(void) {
/* Tell Windows that we will handle critical errors. */
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);
/* Initialize winsock */
uv_winsock_init();