diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-08 19:41:14 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-08 19:41:14 +0000 |
commit | 038f6cc65778c17300ce5c62bb25723f7fa16714 (patch) | |
tree | 61b97dfd9eca190a017495f11e0a2c780590f6d3 /plugins/UserInfoEx/src/init.cpp | |
parent | 9c4ba307862a3408c67a55bd0c003b6f0f2bdc7d (diff) |
UserInfoEx:
- minor warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/init.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/init.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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");
}
|