summaryrefslogtreecommitdiff
path: root/yapp/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yapp/services.cpp')
-rw-r--r--yapp/services.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/yapp/services.cpp b/yapp/services.cpp
index 96e897c..573ae58 100644
--- a/yapp/services.cpp
+++ b/yapp/services.cpp
@@ -347,6 +347,8 @@ int RegisterPopupClass(WPARAM wParam, LPARAM lParam) {
int CreateClassPopup(WPARAM wParam, LPARAM lParam) {
POPUPDATACLASS *pdc = (POPUPDATACLASS *)lParam;
+ if(pdc->cbSize != sizeof(POPUPDATACLASS)) return 1;
+
POPUPCLASS *pc = 0;
if(wParam) pc = (POPUPCLASS *)wParam;
else {