diff options
author | George Hazan <ghazan@miranda.im> | 2019-06-04 15:51:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-06-04 15:51:20 +0300 |
commit | 069b1736634b81fbd99909f668f4318fab4cc9b9 (patch) | |
tree | 757b6811845c0f2d9ad5cf29d3f8818f3c6715d6 /plugins | |
parent | 5840e0079961a5c164672908ba15368344db650d (diff) |
warning fix
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 3 |
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);
|