diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-08-18 18:02:30 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-08-18 18:02:30 +0000 |
commit | fca84c3758947e6d933897fac7c9791d45fbb476 (patch) | |
tree | bf8684c0bc1b348a0ab5b51ff33abe0e49766d48 /plugins/YAMN/src/main.cpp | |
parent | 6bbc0a78423fa98d659826faf12303093ec70123 (diff) |
- fixed YAMN hotkey (fixes #443)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/src/main.cpp')
-rw-r--r-- | plugins/YAMN/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
|