summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-24 17:13:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-24 17:13:02 +0300
commit789aa2edb6337739caccbf0a5769d2419ffd4bb9 (patch)
treef9420d17e59016f50ad5162c052ada6ba001f551 /src/mir_app
parentdda1c6b8e7c98a4a5b31661e9b389b594172484c (diff)
code cleaning
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/popups.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/popups.cpp b/src/mir_app/src/popups.cpp
index d6958bcb46..c2ace7d45f 100644
--- a/src/mir_app/src/popups.cpp
+++ b/src/mir_app/src/popups.cpp
@@ -140,7 +140,8 @@ MIR_APP_DLL(HWND) Popup_AddClass(POPUPDATACLASS *pData)
MIR_APP_DLL(HWND) ShowClassPopup(const char *name, const char *title, const char *text)
{
- POPUPDATACLASS d = { sizeof(d), name };
+ POPUPDATACLASS d = { sizeof(d) };
+ d.pszClassName = name;
d.szTitle.a = title;
d.szText.a = text;
return (HWND)CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&d);
@@ -148,7 +149,8 @@ MIR_APP_DLL(HWND) ShowClassPopup(const char *name, const char *title, const char
MIR_APP_DLL(HWND) ShowClassPopupW(const char *name, const wchar_t *title, const wchar_t *text)
{
- POPUPDATACLASS d = { sizeof(d), name };
+ POPUPDATACLASS d = { sizeof(d) };
+ d.pszClassName = name;
d.szTitle.w = title;
d.szText.w = text;
return (HWND)CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&d);