From fca84c3758947e6d933897fac7c9791d45fbb476 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 18 Aug 2013 18:02:30 +0000 Subject: - fixed YAMN hotkey (fixes #443) git-svn-id: http://svn.miranda-ng.org/main/trunk@5734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/YAMN/src/main.cpp') diff --git a/plugins/YAMN/src/main.cpp b/plugins/YAMN/src/main.cpp index 64b9642e64..ed0ea35794 100644 --- a/plugins/YAMN/src/main.cpp +++ b/plugins/YAMN/src/main.cpp @@ -315,7 +315,6 @@ static void LoadPlugins() extern "C" int __declspec(dllexport) Load(void) { - int i, k; mir_getLP(&pluginInfo); YAMN_STATUS = ID_STATUS_OFFLINE; @@ -334,7 +333,7 @@ extern "C" int __declspec(dllexport) Load(void) // Enumerate all the code pages available for the System Locale EnumSystemCodePages(EnumSystemCodePagesProc, CP_INSTALLED); CodePageNamesSupp = new _tcptable[CPLENSUPP]; - for (i = 0, k = 0; i < CPLENALL; i++) { + for (int i = 0, k = 0; i < CPLENALL; i++) { if (CodePageNamesAll[i].isValid) { CodePageNamesSupp[k] = CodePageNamesAll[i]; k++; @@ -395,6 +394,7 @@ extern "C" int __declspec(dllexport) Load(void) HOTKEYDESC hkd = {0}; hkd.cbSize = sizeof(hkd); + hkd.pszName = "YAMN_hotkey"; hkd.pszService = MS_YAMN_FORCECHECK; hkd.pszSection = YAMN_DBMODULE; hkd.pszDescription = LPGEN("Check mail"); @@ -402,7 +402,7 @@ extern "C" int __declspec(dllexport) Load(void) Hotkey_Register(&hkd); //Create thread that will be executed every second - if (!(SecTimer = SetTimer(NULL, 0, 1000, (TIMERPROC)TimerProc))) + if (!(SecTimer = SetTimer(NULL, 0, 1000, TimerProc))) return 1; return 0; -- cgit v1.2.3