summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-01-25 10:04:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-01-25 10:04:32 +0000
commit69839c26be7521aade107d06b2c8108f9f01ce97 (patch)
tree960509abad815465a451724ef10ab7d6c4a28fa4 /plugins
parent2b16e35b59294f62e9486a77d16477498a0dc78e (diff)
added FreeLibrary after LoadLibrary
git-svn-id: http://svn.miranda-ng.org/main/trunk@11903 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TipperYM/src/message_pump.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/TipperYM/src/message_pump.cpp b/plugins/TipperYM/src/message_pump.cpp
index 6ad04e4af4..598d9fb69b 100644
--- a/plugins/TipperYM/src/message_pump.cpp
+++ b/plugins/TipperYM/src/message_pump.cpp
@@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA.
#include "common.h"
+HMODULE hDwmapiDll = 0;
HRESULT (WINAPI *MyDwmEnableBlurBehindWindow)(HWND hWnd, DWM_BLURBEHIND *pBlurBehind) = 0;
unsigned int uintMessagePumpThreadId = 0;
@@ -231,7 +232,7 @@ void InitMessagePump()
wcl.lpszClassName = POP_WIN_CLASS;
RegisterClassEx(&wcl);
- HMODULE hDwmapiDll = LoadLibrary(_T("dwmapi.dll"));
+ hDwmapiDll = LoadLibrary(_T("dwmapi.dll"));
if (hDwmapiDll)
MyDwmEnableBlurBehindWindow = (HRESULT (WINAPI *)(HWND, DWM_BLURBEHIND *))GetProcAddress(hDwmapiDll, "DwmEnableBlurBehindWindow");
@@ -242,6 +243,7 @@ void DeinitMessagePump()
{
PostMPMessage(WM_QUIT, 0, 0);
UnregisterClass(POP_WIN_CLASS, hInst);
+ FreeLibrary(hDwmapiDll);
}
INT_PTR ShowTip(WPARAM wParam, LPARAM lParam)