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 /src/core/stdpopup | |
parent | 7524e8b875b924bb3cee484e90f6cc6bc01515a4 (diff) |
Popup+: fix for a madness with default popup class values
Diffstat (limited to 'src/core/stdpopup')
-rw-r--r-- | src/core/stdpopup/src/options.cpp | 2 | ||||
-rw-r--r-- | src/core/stdpopup/src/services.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/stdpopup/src/options.cpp b/src/core/stdpopup/src/options.cpp index cff89de23e..6e196dfea7 100644 --- a/src/core/stdpopup/src/options.cpp +++ b/src/core/stdpopup/src/options.cpp @@ -465,7 +465,7 @@ public: POPUPCLASS pc = *p; pc.PluginWindowProc = nullptr; - POPUPDATACLASS d = { sizeof(d) }; + POPUPDATACLASS d = {}; d.pszClassName = pc.pszName; if (p->flags & PCF_UNICODE) { d.szTitle.w = TranslateT("Preview"); diff --git a/src/core/stdpopup/src/services.cpp b/src/core/stdpopup/src/services.cpp index b743e173df..aa5defdb00 100644 --- a/src/core/stdpopup/src/services.cpp +++ b/src/core/stdpopup/src/services.cpp @@ -337,7 +337,6 @@ static INT_PTR UnregisterPopupClass(WPARAM, LPARAM lParam) static INT_PTR CreateClassPopup(WPARAM wParam, LPARAM lParam) { POPUPDATACLASS *pdc = (POPUPDATACLASS *)lParam; - if (pdc->cbSize < sizeof(POPUPDATACLASS)) return 1; POPUPCLASS *pc = nullptr; if (wParam) |