From 99962115431435cf17dfae4d3b7c8d7d55d824bf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Mar 2019 15:29:44 +0300 Subject: life is too short to remember whether this structure is zeroed or not --- include/m_popup.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/m_popup.h b/include/m_popup.h index 6c0b168224..c8f77d27b5 100644 --- a/include/m_popup.h +++ b/include/m_popup.h @@ -115,6 +115,10 @@ EXTERN_C MIR_APP_DLL(void) Popup_Change(HWND hwndPopup, const POPUPDATA2 *pData) struct POPUPDATA { + __forceinline POPUPDATA() + { memset(this, 0, sizeof(*this)); + } + MCONTACT lchContact; HICON lchIcon; char lpzContactName[MAX_CONTACTNAME]; @@ -128,6 +132,10 @@ struct POPUPDATA struct POPUPDATAW { + __forceinline POPUPDATAW() + { memset(this, 0, sizeof(*this)); + } + MCONTACT lchContact; HICON lchIcon; wchar_t lpwzContactName[MAX_CONTACTNAME]; -- cgit v1.2.3