From 48b6fb8b006d9210f283a28634f536b6235c6b5a Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 21 Nov 2017 06:01:02 -0500 Subject: [PATCH] Attempt to disable Windows error message when a plugin with incompatable ABI is loaded --- src/plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin.cpp b/src/plugin.cpp index fbce8f02..7bfd1ed4 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -109,6 +109,7 @@ static int loadPlugin(std::string path) { // Load dynamic/shared library #if ARCH_WIN + SetErrorMode(SEM_NOGPFAULTERRORBOX); HINSTANCE handle = LoadLibrary(libraryFilename.c_str()); if (!handle) { int error = GetLastError();