diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
commit | 346ae348ae7ee5a594c9fcd17114ae949c1ce201 (patch) | |
tree | 1e42c52d59515646d603a9593ce23d094a5fde20 /protocols/Gadu-Gadu/src | |
parent | 7524e8b875b924bb3cee484e90f6cc6bc01515a4 (diff) |
Popup+: fix for a madness with default popup class values
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r-- | protocols/Gadu-Gadu/src/popups.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Gadu-Gadu/src/popups.cpp b/protocols/Gadu-Gadu/src/popups.cpp index 7ae48ba9c6..872a1bc01e 100644 --- a/protocols/Gadu-Gadu/src/popups.cpp +++ b/protocols/Gadu-Gadu/src/popups.cpp @@ -75,8 +75,7 @@ void GaduProto::initpopups() wchar_t szDescr[256];
char szName[256];
- POPUPCLASS puc = { 0 };
- puc.cbSize = sizeof(puc);
+ POPUPCLASS puc = {};
puc.PluginWindowProc = PopupWindowProc;
puc.flags = PCF_UNICODE;
puc.pszName = szName;
@@ -113,7 +112,7 @@ void CALLBACK sttMainThreadCallback(PVOID dwParam) else
mir_snprintf(szName, "%s_%s", gg->m_szModuleName, "Notify");
- POPUPDATACLASS ppd = { sizeof(ppd) };
+ POPUPDATACLASS ppd = {};
ppd.szTitle.w = puData->title;
ppd.szText.w = puData->text;
ppd.PluginData = puData;
|