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 /src/modules/options | |
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 'src/modules/options')
-rw-r--r-- | src/modules/options/options.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index a9975328c8..dce2320f71 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -1291,15 +1291,12 @@ static INT_PTR AddOptionsPage(WPARAM wParam, LPARAM lParam) {
OPTIONSDIALOGPAGE *odp = (OPTIONSDIALOGPAGE*)lParam, *dst;
OptionsPageInit *opi = (OptionsPageInit*)wParam;
-
- if (odp == NULL || opi == NULL) return 1;
- if (odp->cbSize != sizeof(OPTIONSDIALOGPAGE))
+ if (odp == NULL || opi == NULL)
return 1;
opi->odp = (OPTIONSDIALOGPAGE*)mir_realloc(opi->odp, sizeof(OPTIONSDIALOGPAGE)*(opi->pageCount + 1));
dst = opi->odp + opi->pageCount;
- memset(dst, 0, sizeof(OPTIONSDIALOGPAGE));
- memcpy(dst, odp, odp->cbSize);
+ memcpy(dst, odp, sizeof(OPTIONSDIALOGPAGE));
if (odp->ptszTitle != NULL) {
if (odp->flags & ODPF_UNICODE)
|