summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-06-04 15:51:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-06-04 15:51:20 +0300
commit069b1736634b81fbd99909f668f4318fab4cc9b9 (patch)
tree757b6811845c0f2d9ad5cf29d3f8818f3c6715d6 /plugins
parent5840e0079961a5c164672908ba15368344db650d (diff)
warning fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 579eb5b796..6690baac95 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -119,6 +119,7 @@ void CTabBaseDlg::CloseTab()
}
SendMessage(m_pContainer->m_hwnd, WM_SIZE, 0, 0);
+ DestroyWindow(m_hwnd);
}
void CTabBaseDlg::LoadSettings()
@@ -425,7 +426,7 @@ INT_PTR SendMessageCommand_Worker(MCONTACT hContact, LPCSTR pszMsg, bool isWchar
char *szProto = GetContactProto(hContact);
if (szProto == nullptr)
return 0; // unknown contact
- if (!CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND)
+ if (0 == (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND))
return 0;
HWND hwnd = Srmm_FindWindow(hContact);