summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SmileyAdd/src/general.cpp10
1 files changed, 3 insertions, 7 deletions
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);
}