Răsfoiți Sursa

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.
Richard Stanway 8 ani în urmă
părinte
comite
ac90d863cb
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      UI/obs-app.cpp

+ 1 - 0
UI/obs-app.cpp

@@ -1836,6 +1836,7 @@ int main(int argc, char *argv[])
 #endif
 #endif
 
 
 #ifdef _WIN32
 #ifdef _WIN32
+	SetErrorMode(SEM_FAILCRITICALERRORS);
 	load_debug_privilege();
 	load_debug_privilege();
 	base_set_crash_handler(main_crash_handler, nullptr);
 	base_set_crash_handler(main_crash_handler, nullptr);
 #endif
 #endif