diff options
Diffstat (limited to 'src/thread_utils.h')
| -rw-r--r-- | src/thread_utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/thread_utils.h b/src/thread_utils.h index 607d73a9..f64dd601 100644 --- a/src/thread_utils.h +++ b/src/thread_utils.h @@ -7,8 +7,7 @@ #include <thread> // in main.cpp -void setUnhandledExceptionHandler(); -LONG WINAPI MyUnhandledExceptionFilter(struct _EXCEPTION_POINTERS *exceptionPtrs); +void setExceptionHandlers(); namespace MOShared { @@ -20,7 +19,7 @@ template <class F> std::thread startSafeThread(F&& f) { return std::thread([f=std::forward<F>(f)] { - setUnhandledExceptionHandler(); + setExceptionHandlers(); f(); }); } |
