From 038f6cc65778c17300ce5c62bb25723f7fa16714 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 8 Jun 2015 19:41:14 +0000 Subject: UserInfoEx: - minor warnings fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@14067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/init.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/init.cpp') diff --git a/plugins/UserInfoEx/src/init.cpp b/plugins/UserInfoEx/src/init.cpp index d0fc03cadd..ab35aa96e5 100644 --- a/plugins/UserInfoEx/src/init.cpp +++ b/plugins/UserInfoEx/src/init.cpp @@ -36,6 +36,7 @@ static PLUGININFOEX pluginInfo = { }; int hLangpack; +HMODULE hDwmApi; /* ============================================================================================ @@ -52,7 +53,7 @@ int hLangpack; * * @return always 0 **/ -static int OnTopToolBarLoaded(WPARAM wParam, LPARAM lParam) +static int OnTopToolBarLoaded(WPARAM, LPARAM) { DlgAnniversaryListOnTopToolBarLoaded(); SvcReminderOnTopToolBarLoaded(); @@ -67,7 +68,7 @@ static int OnTopToolBarLoaded(WPARAM wParam, LPARAM lParam) * * @return always 0 **/ -static int OnModulesLoaded(WPARAM wParam, LPARAM lParam) +static int OnModulesLoaded(WPARAM, LPARAM) { myGlobals.PopupActionsExist = ServiceExists(MS_POPUP_REGISTERACTIONS); @@ -90,7 +91,7 @@ static int OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0; } -static int OnShutdown(WPARAM wParam, LPARAM lParam) +static int OnShutdown(WPARAM, LPARAM) { DlgContactInfoUnLoadModule(); SvcReminderUnloadModule(); @@ -145,6 +146,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { **/ extern "C" int __declspec(dllexport) Unload(void) { + FreeLibrary(hDwmApi); return 0; } @@ -182,7 +184,7 @@ extern "C" int __declspec(dllexport) Load(void) } if (IsWinVerVistaPlus()) { - HMODULE hDwmApi = LoadLibraryA("dwmapi.dll"); + hDwmApi = LoadLibraryA("dwmapi.dll"); if (hDwmApi) dwmIsCompositionEnabled = (pfnDwmIsCompositionEnabled)GetProcAddress(hDwmApi, "DwmIsCompositionEnabled"); } -- cgit v1.2.3