summaryrefslogtreecommitdiffhomepage
path: root/opentrack/plugin-support.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-04 09:19:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-04 09:29:28 +0200
commitf58efb5c2c51e5866d4640036865792b822641f6 (patch)
tree4316d898c27c3adb1c332544876445ba73bd1eb0 /opentrack/plugin-support.hpp
parent27bbb01ff3d49bd37daa9649f5c2320663c46aa4 (diff)
parent0bf534ff329cabaa61a0dddb8671827577407aba (diff)
Merge branch 'unstable' into trackhat-ui
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