summaryrefslogtreecommitdiff
path: root/plugins/PackUpdater/Src/Events.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-01-02 19:40:35 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-01-02 19:40:35 +0000
commite185ce0df50fa161f5ea5c89fe0edfdbabb59185 (patch)
treea9dde200742c3edbee7d1be5e88335060372cbd6 /plugins/PackUpdater/Src/Events.cpp
parent006238c7b97bd68b99667146f1b5df1f3661f470 (diff)
fixed version compare
warning level changed to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11726 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PackUpdater/Src/Events.cpp')
-rw-r--r--plugins/PackUpdater/Src/Events.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/plugins/PackUpdater/Src/Events.cpp b/plugins/PackUpdater/Src/Events.cpp
index 8ee03c1e30..855c3d51cb 100644
--- a/plugins/PackUpdater/Src/Events.cpp
+++ b/plugins/PackUpdater/Src/Events.cpp
@@ -1,5 +1,5 @@
-/*
-Copyright (C) 2010 Mataes
+/*
+Copyright (C) 2011-2015 Mataes
This is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -14,7 +14,7 @@ Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this file; see the file license.txt. If
not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
+Boston, MA 02111-1307, USA.
*/
#include "common.h"
@@ -22,11 +22,10 @@ Boston, MA 02111-1307, USA.
HANDLE Timer;
BOOL Silent;
-int ModulesLoaded(WPARAM wParam, LPARAM lParam)
+int ModulesLoaded(WPARAM, LPARAM)
{
- UnhookEvent(hLoadHook);
Silent = true;
- HOTKEYDESC hkd = {0};
+ HOTKEYDESC hkd = { 0 };
hkd.cbSize = sizeof(hkd);
hkd.dwFlags = HKD_TCHAR;
hkd.pszName = "Check for pack updates";
@@ -46,14 +45,14 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
return 0;
}
-INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
+INT_PTR MenuCommand(WPARAM, LPARAM)
{
Silent = false;
DoCheck(TRUE);
return 0;
}
-INT_PTR EmptyFolder(WPARAM wParam,LPARAM lParam)
+INT_PTR EmptyFolder(WPARAM, LPARAM lParam)
{
SHFILEOPSTRUCT file_op = {
NULL,
@@ -71,12 +70,9 @@ INT_PTR EmptyFolder(WPARAM wParam,LPARAM lParam)
return 0;
}
-INT OnPreShutdown(WPARAM wParam, LPARAM lParam)
+INT OnPreShutdown(WPARAM, LPARAM)
{
CancelWaitableTimer(Timer);
CloseHandle(Timer);
-
- UnhookEvent(hOptHook);
- UnhookEvent(hOnPreShutdown);
return 0;
}