From 789aa2edb6337739caccbf0a5769d2419ffd4bb9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jul 2019 17:13:02 +0300 Subject: code cleaning --- src/mir_app/src/popups.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mir_app') 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); -- cgit v1.2.3