diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-22 12:01:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-22 12:01:09 +0300 |
commit | 82206ec201380582a7a5954138e72238ecdede26 (patch) | |
tree | d17b903f084090de4ddb78dbb779951762d45342 /plugins/SmileyAdd/src/general.cpp | |
parent | 1959392a4368416ed4f5f0b4e271a3eb9100d548 (diff) |
fixes #3473 (The warning about smiles set stays forever)
Diffstat (limited to 'plugins/SmileyAdd/src/general.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/general.cpp | 10 |
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);
}
|