diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-20 05:45:44 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-20 05:45:44 +0000 |
commit | 31ecbfb98d5a7c5e85d508654891b4b1e316fe44 (patch) | |
tree | dfbfdb1256d81dc6ceaf8b03d1cf62a4e45ac383 /yapp/services.cpp | |
parent | 2afeed2f72aa6044fa23dcfa8f594206099f7867 (diff) |
check size of popup class data structure
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@294 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/services.cpp')
-rw-r--r-- | yapp/services.cpp | 2 |
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 {
|