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/YAPP.mdsp | 22 +++++++++++----------- yapp/services.cpp | 2 ++ yapp/version.h | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) (limited to 'yapp') diff --git a/yapp/YAPP.mdsp b/yapp/YAPP.mdsp index a8c3c3d..7ac3ef6 100644 --- a/yapp/YAPP.mdsp +++ b/yapp/YAPP.mdsp @@ -110,15 +110,15 @@ extraResourceOptions= 1=popups2.rc 2=version.rc [History] -message_pump.cpp,1129 -common.h,2366 -popup_history.cpp,2330 -resource.rc,23 -version.rc,24 -resource.h,2161 -popups2.rc,830 -popups2.cpp,1500 -..\..\include\m_plugins.h,0 -..\..\include\newpluginapi.h,1181 version.h,150 -popwin.cpp,2081 +..\..\include\newpluginapi.h,1181 +..\..\include\m_plugins.h,0 +popups2.cpp,1500 +popups2.rc,830 +resource.h,2161 +version.rc,24 +resource.rc,23 +popup_history.cpp,2330 +common.h,2366 +message_pump.cpp,1129 +popwin.cpp,2018 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 { diff --git a/yapp/version.h b/yapp/version.h index 549dfd5..6fd31b0 100644 --- a/yapp/version.h +++ b/yapp/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 4 #define __RELEASE_NUM 0 -#define __BUILD_NUM 2 +#define __BUILD_NUM 3 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3