From a697754351436b6d0066b77b0fd71aeb8c45be3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Apr 2015 15:47:29 +0000 Subject: 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 --- protocols/SkypeClassic/src/skypeopt.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'protocols/SkypeClassic/src/skypeopt.cpp') diff --git a/protocols/SkypeClassic/src/skypeopt.cpp b/protocols/SkypeClassic/src/skypeopt.cpp index de3dc10367..7d7acc1e96 100644 --- a/protocols/SkypeClassic/src/skypeopt.cpp +++ b/protocols/SkypeClassic/src/skypeopt.cpp @@ -47,11 +47,9 @@ static HBITMAP hAvatar = NULL; extern BOOL PopupServiceExists; extern BOOL (WINAPI *MyEnableThemeDialogTexture)(HANDLE, DWORD); -int RegisterOptions(WPARAM wParam, LPARAM) { - OPTIONSDIALOGPAGE odp; - - memset(&odp, 0, sizeof(odp)); - odp.cbSize = sizeof(odp); +int RegisterOptions(WPARAM wParam, LPARAM) +{ + OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = hInst; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS); odp.pszGroup = "Network"; @@ -732,10 +730,9 @@ INT_PTR CALLBACK OptionsDefaultDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L int OnDetailsInit( WPARAM wParam, LPARAM lParam ) { - OPTIONSDIALOGPAGE odp = {0}; MCONTACT hContact = (MCONTACT)lParam; - odp.cbSize = sizeof(odp); + OPTIONSDIALOGPAGE odp = { 0 }; odp.hIcon = NULL; odp.hInstance = hInst; -- cgit v1.2.3