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/Clist_mw/src/clc.cpp | 10 +++++----- plugins/Clist_mw/src/clui.cpp | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/Clist_mw/src') diff --git a/plugins/Clist_mw/src/clc.cpp b/plugins/Clist_mw/src/clc.cpp index e0fe218ebb..eb93367b70 100644 --- a/plugins/Clist_mw/src/clc.cpp +++ b/plugins/Clist_mw/src/clc.cpp @@ -93,18 +93,18 @@ void SortClcByTimer (HWND hwnd) SetTimer(hwnd,TIMERID_DELAYEDRESORTCLC,db_get_b(NULL,"CLUI","DELAYEDTIMER",200),NULL); } -static int ClcSettingChanged(WPARAM wParam, LPARAM lParam) +static int ClcSettingChanged(WPARAM hContact, LPARAM lParam) { DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam; - if ((HANDLE)wParam != NULL && !strcmp(cws->szModule,"MetaContacts") && !strcmp(cws->szSetting,"Handle")) + if (hContact != NULL && !strcmp(cws->szModule,"MetaContacts") && !strcmp(cws->szSetting,"Handle")) pcli->pfnClcBroadcast( INTM_NAMEORDERCHANGED, 0, 0 ); - if ((HANDLE)wParam != NULL && !strcmp(cws->szModule,"CList")) { + if (hContact != NULL && !strcmp(cws->szModule,"CList")) { if ( !strcmp( cws->szSetting, "noOffline" )) - pcli->pfnClcBroadcast( INTM_NAMEORDERCHANGED, wParam, lParam ); + pcli->pfnClcBroadcast(INTM_NAMEORDERCHANGED, hContact, lParam); else if ( !strcmp(cws->szSetting,"StatusMsg")) - pcli->pfnClcBroadcast( INTM_STATUSMSGCHANGED, wParam, lParam ); + pcli->pfnClcBroadcast(INTM_STATUSMSGCHANGED, hContact, lParam); } return 0; } diff --git a/plugins/Clist_mw/src/clui.cpp b/plugins/Clist_mw/src/clui.cpp index f7d929cce5..ca39b38253 100644 --- a/plugins/Clist_mw/src/clui.cpp +++ b/plugins/Clist_mw/src/clui.cpp @@ -334,12 +334,12 @@ int CreateTimerForConnectingIcon(WPARAM wParam, LPARAM lParam) // Restore protocols to the last global status. // Used to reconnect on restore after standby. -int OnSettingChanging(WPARAM wParam, LPARAM lParam) +int OnSettingChanging(WPARAM hContact, LPARAM lParam) { DBCONTACTWRITESETTING *dbcws = (DBCONTACTWRITESETTING *)lParam; - if (wParam == 0) { - if ((dbcws->value.type == DBVT_BYTE)&&!strcmp(dbcws->szModule,"CLUI")) { - if ( !strcmp(dbcws->szSetting,"SBarShow")) { + if (hContact == 0) { + if ((dbcws->value.type == DBVT_BYTE) && !strcmp(dbcws->szModule,"CLUI")) { + if (!strcmp(dbcws->szSetting,"SBarShow")) { showOpts = dbcws->value.bVal; return 0; } -- cgit v1.2.3