summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-08 15:29:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-08 15:29:44 +0300
commit99962115431435cf17dfae4d3b7c8d7d55d824bf (patch)
tree1c80a533f5d3d4ba9d3b894a9a38b9167fe3047e /include
parenta23186175cff579d5aeb231372e87b0b852bdb38 (diff)
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'include')
-rw-r--r--include/m_popup.h8
1 files changed, 8 insertions, 0 deletions
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];