summaryrefslogtreecommitdiff
path: root/src/core/stdmsg
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-10 12:54:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-10 12:54:20 +0300
commitef0ba268b340eaf1217a96d763342c25668588b4 (patch)
tree17396375e213043c2ce1c59b50b7f30488dcb83d /src/core/stdmsg
parent33733576589076f080ddfa000b899843016a2597 (diff)
Protocols: preventing recursive contact deletion
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r--src/core/stdmsg/src/msgs.cpp4
1 files changed, 2 insertions, 2 deletions
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();