From 82206ec201380582a7a5954138e72238ecdede26 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 22 Apr 2023 12:01:09 +0300 Subject: fixes #3473 (The warning about smiles set stays forever) --- plugins/SmileyAdd/src/general.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/general.cpp b/plugins/SmileyAdd/src/general.cpp index ce6513d5ec..7c669ca5ec 100644 --- a/plugins/SmileyAdd/src/general.cpp +++ b/plugins/SmileyAdd/src/general.cpp @@ -147,12 +147,8 @@ bool IsSmileyProto(char *proto) void ReportError(const wchar_t *errmsg) { - static const wchar_t title[] = L"Miranda SmileyAdd"; - - POPUPDATAW ppd; - mir_wstrcpy(ppd.lpwzContactName, title); + POPUPDATAW ppd = {}; + mir_wstrcpy(ppd.lpwzContactName, L"Miranda SmileyAdd"); mir_wstrcpy(ppd.lpwzText, errmsg); - ppd.iSeconds = -1; - if (PUAddPopupW(&ppd) == INVALID_HANDLE_VALUE) - MessageBox(nullptr, errmsg, title, MB_OK | MB_ICONWARNING | MB_TOPMOST); + PUAddPopupW(&ppd); } -- cgit v1.2.3