From 346ae348ae7ee5a594c9fcd17114ae949c1ce201 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Jun 2022 15:09:41 +0300 Subject: Popup+: fix for a madness with default popup class values --- protocols/Gadu-Gadu/src/popups.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Gadu-Gadu/src') 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; -- cgit v1.2.3