From 9374c8e701dcb61a46c89a854235d91a23bf672e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jul 2019 20:02:16 +0300 Subject: warning fixes --- src/core/stdmsg/src/msgs.cpp | 2 +- src/core/stdmsg/src/stdafx.h | 2 +- 2 files 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 50c98f7a98..3647e86176 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -168,7 +168,7 @@ INT_PTR SendMessageCmd(MCONTACT hContact, wchar_t *pwszInitialText) { /* does the MCONTACT's protocol support IM messages? */ char *szProto = GetContactProto(hContact); - if (!szProto || (!CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND)) + if (!szProto || !(CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND)) return 1; hContact = db_mc_tryMeta(hContact); diff --git a/src/core/stdmsg/src/stdafx.h b/src/core/stdmsg/src/stdafx.h index b24778cf89..2d1a4e18e6 100644 --- a/src/core/stdmsg/src/stdafx.h +++ b/src/core/stdmsg/src/stdafx.h @@ -153,7 +153,7 @@ class CTabbedWindow : public CDlgBase public: CCtrlPages m_tab; - HWND m_hwndStatus; + HWND m_hwndStatus = nullptr; CMsgDialog *m_pEmbed = nullptr; CTabbedWindow(); -- cgit v1.2.3