diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-08 15:29:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-08 15:29:44 +0300 |
commit | 99962115431435cf17dfae4d3b7c8d7d55d824bf (patch) | |
tree | 1c80a533f5d3d4ba9d3b894a9a38b9167fe3047e /include | |
parent | a23186175cff579d5aeb231372e87b0b852bdb38 (diff) |
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'include')
-rw-r--r-- | include/m_popup.h | 8 |
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];
|