summaryrefslogtreecommitdiff
path: root/src/modules/skin/hotkey_opts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-21 14:07:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-21 14:07:20 +0000
commit8fae64116820207e15c5503532d6604cf6668fea (patch)
treef9c0198d2842d4dda7d83764fde240950a51210d /src/modules/skin/hotkey_opts.cpp
parent92ae1f2aa713c2f6ce28fda42d35e0b721e6db6e (diff)
fix for hotkeys' швы
git-svn-id: http://svn.miranda-ng.org/main/trunk@510 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/skin/hotkey_opts.cpp')
-rw-r--r--src/modules/skin/hotkey_opts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/skin/hotkey_opts.cpp b/src/modules/skin/hotkey_opts.cpp
index aa1526e955..4f6ffefd45 100644
--- a/src/modules/skin/hotkey_opts.cpp
+++ b/src/modules/skin/hotkey_opts.cpp
@@ -267,6 +267,7 @@ static int CALLBACK sttOptionsSortList(LPARAM lParam1, LPARAM lParam2, LPARAM lP
static void sttOptionsAddHotkey(HWND hwndList, THotkeyItem *item)
{
char buf[256];
+ mir_snprintf(buf, SIZEOF(buf), "mir_hotkey_%d_%d", g_pid, g_hkid++);
THotkeyItem *newItem = (THotkeyItem *)mir_alloc(sizeof(THotkeyItem));
newItem->pszName = NULL;
@@ -274,7 +275,6 @@ static void sttOptionsAddHotkey(HWND hwndList, THotkeyItem *item)
newItem->ptszSection = mir_tstrdup(item->ptszSection);
newItem->ptszDescription = mir_tstrdup(item->ptszDescription);
newItem->lParam = item->lParam;
- mir_snprintf(buf, SIZEOF(buf), "mir_hotkey_%d_%d", g_pid, hotkeys.getCount()+1);
newItem->idHotkey = GlobalAddAtomA(buf);
newItem->rootHotkey = item;
newItem->Hotkey = newItem->DefHotkey = newItem->OptHotkey = 0;