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 --- plugins/SmileyAdd/src/general.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/general.cpp b/plugins/SmileyAdd/src/general.cpp index 7a1582daa3..9291389d6f 100644 --- a/plugins/SmileyAdd/src/general.cpp +++ b/plugins/SmileyAdd/src/general.cpp @@ -197,10 +197,10 @@ void ReportError(const wchar_t *errmsg) { static const wchar_t title[] = L"Miranda SmileyAdd"; - POPUPDATAW pd = { 0 }; - mir_wstrcpy(pd.lpwzContactName, title); - mir_wstrcpy(pd.lpwzText, errmsg); - pd.iSeconds = -1; - if (PUAddPopupW(&pd) == INVALID_HANDLE_VALUE) + POPUPDATAW ppd; + mir_wstrcpy(ppd.lpwzContactName, title); + mir_wstrcpy(ppd.lpwzText, errmsg); + ppd.iSeconds = -1; + if (PUAddPopupW(&ppd) == INVALID_HANDLE_VALUE) MessageBox(nullptr, errmsg, title, MB_OK | MB_ICONWARNING | MB_TOPMOST); } -- cgit v1.2.3