From ac90d863cbed84fd66f82248463f438bf62f82fe Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Wed, 21 Jun 2017 17:39:20 +0200 Subject: [PATCH] UI: Set error mode to SEM_FAILCRITICALERRORS This prevents spurious dialog boxes appearing, such as "No disk is in the drive" if the application attempts to access an invalid drive. --- UI/obs-app.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 492aad0b3..01db7146d 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -1836,6 +1836,7 @@ int main(int argc, char *argv[]) #endif #ifdef _WIN32 + SetErrorMode(SEM_FAILCRITICALERRORS); load_debug_privilege(); base_set_crash_handler(main_crash_handler, nullptr); #endif -- GitLab