summaryrefslogtreecommitdiff
path: root/plugins/PackUpdater
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-30 17:30:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-30 17:30:39 +0300
commit6fad3235de6bec045fec19a7265e19e880ac84e2 (patch)
treeea375f721c2cc7e586142ccd0298b096a7a5b31f /plugins/PackUpdater
parent4aab3b6bc3d66ade09b25649d389b8aef358bfbd (diff)
Hotkeys: code cleaning
Diffstat (limited to 'plugins/PackUpdater')
-rw-r--r--plugins/PackUpdater/Src/Events.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/PackUpdater/Src/Events.cpp b/plugins/PackUpdater/Src/Events.cpp
index 92d12fc948..be0be7c32d 100644
--- a/plugins/PackUpdater/Src/Events.cpp
+++ b/plugins/PackUpdater/Src/Events.cpp
@@ -25,15 +25,14 @@ BOOL Silent;
int ModulesLoaded(WPARAM, LPARAM)
{
Silent = true;
- HOTKEYDESC hkd = { 0 };
- hkd.cbSize = sizeof(hkd);
+
+ HOTKEYDESC hkd = {};
hkd.dwFlags = HKD_UNICODE;
hkd.pszName = "Check for pack updates";
- hkd.pwszDescription = LPGENW("Check for pack updates");
- hkd.pwszSection = LPGENW("Pack Updater");
+ hkd.szDescription.w = LPGENW("Check for pack updates");
+ hkd.szSection.w = LPGENW("Pack Updater");
hkd.pszService = MODNAME"/CheckUpdates";
hkd.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, VK_F10) | HKF_MIRANDA_LOCAL;
- hkd.lParam = FALSE;
Hotkey_Register(&hkd);
if (AllowUpdateOnStartup())