diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-15 15:47:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-15 15:47:29 +0000 |
commit | a697754351436b6d0066b77b0fd71aeb8c45be3d (patch) | |
tree | c2821a76e17eb003fe14b82b91ccb8b88dbe3adc /plugins/UserInfoEx/src/dlg_propsheet.cpp | |
parent | 2e3b0d5d40f1113887bd67e6ba227b780c4293cd (diff) |
after commit #12797 field OPTIONSDIALOGPAGE::cbSize became an atavism, and therefore removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@12840 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/dlg_propsheet.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/dlg_propsheet.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/UserInfoEx/src/dlg_propsheet.cpp b/plugins/UserInfoEx/src/dlg_propsheet.cpp index 6ebf3bba69..265a885574 100644 --- a/plugins/UserInfoEx/src/dlg_propsheet.cpp +++ b/plugins/UserInfoEx/src/dlg_propsheet.cpp @@ -352,11 +352,6 @@ static INT_PTR AddPage(WPARAM wParam, LPARAM lParam) if (pPsh == NULL || odp == NULL || pPsh->_dwSize != sizeof(CPsHdr))
return 1;
- if (odp->cbSize != sizeof(OPTIONSDIALOGPAGE) && odp->cbSize != OPTIONPAGE_OLD_SIZE) {
- MsgErr(NULL, LPGENT("The page to add has invalid size %d bytes!"), odp->cbSize);
- return 1;
- }
-
// try to check whether the flag member is initialized or not
odp->flags = odp->flags > (ODPF_UNICODE | ODPF_BOLDGROUPS | ODPF_ICON | PSPF_PROTOPREPENDED) ? 0 : odp->flags;
@@ -511,7 +506,7 @@ static int InitDetails(WPARAM wParam, LPARAM lParam) if (!(pPsh->_dwFlags & PSF_PROTOPAGESONLY)) {
BYTE bChangeDetailsEnabled = myGlobals.CanChangeDetails && db_get_b(NULL, MODNAME, SET_PROPSHEET_CHANGEMYDETAILS, FALSE);
if (lParam || bChangeDetailsEnabled) {
- OPTIONSDIALOGPAGE odp = { sizeof(odp) };
+ OPTIONSDIALOGPAGE odp = { 0 };
odp.hInstance = ghInst;
odp.flags = ODPF_ICON | ODPF_TCHAR;
odp.ptszGroup = IcoLib_GetDefaultIconFileName();
|