summaryrefslogtreecommitdiffhomepage
path: root/opentrack/plugin-support.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/plugin-support.hpp')
-rw-r--r--opentrack/plugin-support.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/opentrack/plugin-support.hpp b/opentrack/plugin-support.hpp
index 1c334e14..7f2734af 100644
--- a/opentrack/plugin-support.hpp
+++ b/opentrack/plugin-support.hpp
@@ -42,7 +42,7 @@
#include <iostream>
#ifdef _MSC_VER
-# error "No support for MSVC anymore"
+# define OPENTRACK_LIB_PREFIX ""
#else
# define OPENTRACK_LIB_PREFIX "lib"
#endif
@@ -115,7 +115,8 @@ struct dylib {
{
fprintf(stderr, "Error, ignoring: %s\n", err);
fflush(stderr);
- dlclose(handle);
+ if (handle)
+ dlclose(handle);
handle = nullptr;
return true;
}
@@ -138,6 +139,7 @@ struct dylib {
return;
} else {
(void) _foo::err(handle);
+ return;
}
#endif