From 88985c8cb7694f5a819dc59040b04c5e3faa8e10 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 7 Feb 2017 21:18:12 +0100 Subject: [PATCH] There is no disk in drive error messages with Windows gtk3 builds. fixes #3544 --- rtgui/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtgui/main.cc b/rtgui/main.cc index 20cd626e9..d6b99fdc6 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -181,6 +181,9 @@ int main(int argc, char **argv) #ifdef WIN32 bool consoleOpened = false; + // suppression of annoying error boxes + SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); + if (argc > 1 || options.rtSettings.verbose) { if (options.rtSettings.verbose || ( !Glib::file_test (fname_to_utf8 (argv[1]), Glib::FILE_TEST_EXISTS ) && !Glib::file_test (fname_to_utf8 (argv[1]), Glib::FILE_TEST_IS_DIR))) { bool stdoutRedirectedtoFile = (GetFileType(GetStdHandle(STD_OUTPUT_HANDLE)) == 0x0001);