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.
This commit is contained in:
Richard Stanway 2017-06-21 17:39:20 +02:00
parent 1b62287109
commit ac90d863cb
No known key found for this signature in database
GPG key ID: AAC1E5265D71B3FD

View file

@ -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