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 /plugins/SmileyAdd/src | |
parent | a23186175cff579d5aeb231372e87b0b852bdb38 (diff) |
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r-- | plugins/SmileyAdd/src/general.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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);
}
|