summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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];