Browse Source

Attempt to disable Windows error message when a plugin with incompatable

ABI is loaded
tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
48b6fb8b00
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/plugin.cpp

+ 1
- 0
src/plugin.cpp View File

@@ -109,6 +109,7 @@ static int loadPlugin(std::string path) {


// Load dynamic/shared library // Load dynamic/shared library
#if ARCH_WIN #if ARCH_WIN
SetErrorMode(SEM_NOGPFAULTERRORBOX);
HINSTANCE handle = LoadLibrary(libraryFilename.c_str()); HINSTANCE handle = LoadLibrary(libraryFilename.c_str());
if (!handle) { if (!handle) {
int error = GetLastError(); int error = GetLastError();


Loading…
Cancel
Save