diff --git a/src/segfault-handler.cpp b/src/segfault-handler.cpp index 6b2dbfb..36b77b4 100644 --- a/src/segfault-handler.cpp +++ b/src/segfault-handler.cpp @@ -326,7 +326,7 @@ NAN_METHOD(RegisterHandler) { } #ifdef _WIN32 - AddVectoredExceptionHandler(1, segfault_handler); + SetUnhandledExceptionFilter(1, segfault_handler); #else struct sigaction sa; memset(&sa, 0, sizeof(struct sigaction));