From c4ba8af1dbc6a50001bb5a720c1e5018b18ffd1c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 May 2012 20:28:02 +0000 Subject: fix for non-zeroed structures git-svn-id: http://svn.miranda-ng.org/main/trunk@123 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/svc_refreshci.cpp | 5 +---- plugins/UserInfoEx/svc_reminder.cpp | 8 ++------ 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'plugins/UserInfoEx') diff --git a/plugins/UserInfoEx/svc_refreshci.cpp b/plugins/UserInfoEx/svc_refreshci.cpp index f091a5635b..fa3b00a584 100644 --- a/plugins/UserInfoEx/svc_refreshci.cpp +++ b/plugins/UserInfoEx/svc_refreshci.cpp @@ -922,15 +922,12 @@ static INT OnPreShutdown(WPARAM, LPARAM) **/ VOID SvcRefreshContactInfoLoadModule(VOID) { - HOTKEYDESC hk; - myCreateServiceFunction(MS_USERINFO_REFRESH, RefreshService); HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown); HookEvent(ME_DB_CONTACT_ADDED, OnContactAdded); + HOTKEYDESC hk = { 0 }; hk.cbSize = sizeof(HOTKEYDESC); - hk.lParam = NULL; - hk.DefHotKey = NULL; hk.pszSection = MODNAME; hk.pszName = "RefreshContactDetails"; hk.pszDescription = LPGEN("Refresh Contact Details"); diff --git a/plugins/UserInfoEx/svc_reminder.cpp b/plugins/UserInfoEx/svc_reminder.cpp index d299fc06f6..29441a8fc2 100644 --- a/plugins/UserInfoEx/svc_reminder.cpp +++ b/plugins/UserInfoEx/svc_reminder.cpp @@ -1202,10 +1202,7 @@ VOID SvcReminderOnModulesLoaded(VOID) VOID SvcReminderLoadModule(VOID) { // init sounds - SKINSOUNDDESCEX ssd; - HOTKEYDESC hk; - - ZeroMemory(&ssd, sizeof(ssd)); + SKINSOUNDDESCEX ssd = { 0 }; ssd.cbSize = SKINSOUNDDESC_SIZE_V1; ssd.pszSection = LPGEN(MODNAME); @@ -1228,9 +1225,8 @@ VOID SvcReminderLoadModule(VOID) myCreateServiceFunction(MS_USERINFO_REMINDER_CHECK, CheckService); myCreateServiceFunction(MS_USERINFO_REMINDER_AGGRASIVEBACKUP, BackupBirthdayService); + HOTKEYDESC hk = { 0 }; hk.cbSize = sizeof(HOTKEYDESC); - hk.lParam = NULL; - hk.DefHotKey = NULL; hk.pszSection = MODNAME; hk.pszName = "ReminderCheck"; hk.pszDescription = LPGEN("Check anniversaries"); -- cgit v1.2.3