diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-12-24 21:35:41 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-12-24 21:35:41 +0000 |
commit | 603ac95a7dd5231d56b2c4e930b88dc8fb9e40a1 (patch) | |
tree | 5c6f6c48f01e48b5b2d37d574250a8d25f8d44ac /protocols/Tox/src/main.cpp | |
parent | 2aeafe32df3ae171b6feaa543f181f1f42805ea4 (diff) |
Tox: calling of api function from libtox.dll
git-svn-id: http://svn.miranda-ng.org/main/trunk@11606 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/main.cpp')
-rw-r--r-- | protocols/Tox/src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/main.cpp b/protocols/Tox/src/main.cpp index 4077163196..00510624a7 100644 --- a/protocols/Tox/src/main.cpp +++ b/protocols/Tox/src/main.cpp @@ -2,6 +2,7 @@ int hLangpack;
HINSTANCE g_hInstance;
+HMODULE g_hToxLibrary = NULL;
PLUGININFOEX pluginInfo =
{
@@ -46,5 +47,9 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void)
{
+ if (g_hToxLibrary)
+ {
+ FreeLibrary(g_hToxLibrary);
+ }
return 0;
}
\ No newline at end of file |