From 31ecbfb98d5a7c5e85d508654891b4b1e316fe44 Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 20 Jul 2007 05:45:44 +0000 Subject: check size of popup class data structure git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@294 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/services.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yapp/services.cpp') 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 { -- cgit v1.2.3