From ef0ba268b340eaf1217a96d763342c25668588b4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Feb 2023 12:54:20 +0300 Subject: Protocols: preventing recursive contact deletion --- src/core/stdmsg/src/msgs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index 9f5be7be28..066875a243 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -224,9 +224,9 @@ static int MessageSettingChanged(WPARAM hContact, LPARAM lParam) } // If a contact gets deleted, close its message window if there is any -static int ContactDeleted(WPARAM wParam, LPARAM) +static int ContactDeleted(WPARAM hContact, LPARAM) { - auto *pDlg = Srmm_FindDialog(wParam); + auto *pDlg = Srmm_FindDialog(hContact); if (pDlg) pDlg->CloseTab(); -- cgit v1.2.3