From 862116c0d40a7304c458f68c4c725e8a95960588 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Feb 2014 13:18:53 +0000 Subject: valid first parameter's name of ME_DB_CONTACT_SETTINGCHANGED handlers git-svn-id: http://svn.miranda-ng.org/main/trunk@8255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ContactsPlus/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ContactsPlus') diff --git a/plugins/ContactsPlus/src/main.cpp b/plugins/ContactsPlus/src/main.cpp index e4398e6e06..07d9597b96 100644 --- a/plugins/ContactsPlus/src/main.cpp +++ b/plugins/ContactsPlus/src/main.cpp @@ -151,12 +151,12 @@ static int HookModulesLoaded(WPARAM wParam, LPARAM lParam) return 0; } -static int HookContactSettingChanged(WPARAM wParam, LPARAM lParam) +static int HookContactSettingChanged(WPARAM hContact, LPARAM lParam) { DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam; - char *szProto = GetContactProto(wParam); - - if (strcmpnull(cws->szModule, "CList") && strcmpnull(cws->szModule, szProto)) return 0; + char *szProto = GetContactProto(hContact); + if (strcmpnull(cws->szModule, "CList") && strcmpnull(cws->szModule, szProto)) + return 0; WindowList_Broadcast(ghSendWindowList, DM_UPDATETITLE, 0, 0); WindowList_Broadcast(ghRecvWindowList, DM_UPDATETITLE, 0, 0); -- cgit v1.2.3