summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/loadlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SecureIM/src/loadlib.cpp')
-rw-r--r--plugins/SecureIM/src/loadlib.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/SecureIM/src/loadlib.cpp b/plugins/SecureIM/src/loadlib.cpp
index 7ecb9ef0dc..ebe2fab802 100644
--- a/plugins/SecureIM/src/loadlib.cpp
+++ b/plugins/SecureIM/src/loadlib.cpp
@@ -2,11 +2,12 @@
CRYPTOPP_INFO cpp;
+HMODULE h;
BOOL loadlib(void)
{
- HMODULE h = LoadLibraryA("plugins/cryptopp.dll");
+ h = LoadLibrary(_T("plugins/cryptopp.dll"));
if (h == NULL) {
- h = LoadLibraryA("cryptopp.dll");
+ h = LoadLibrary(_T("cryptopp.dll"));
if (h == NULL) return 0;
}
@@ -72,3 +73,7 @@ BOOL loadlib(void)
return (cpp_get_version() >= 0x01000403);
}
+
+void freelib() {
+ FreeLibrary(h);
+} \ No newline at end of file