From 8ff87302691c7cd52b50d279e653732e1a00b97c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Jun 2012 09:09:11 +0000 Subject: =?UTF-8?q?fix=20for=20crash=20in=20NEN=20options=E2=80=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/neweventnotify.h | 3 --- plugins/NewEventNotify/options.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/plugins/NewEventNotify/neweventnotify.h b/plugins/NewEventNotify/neweventnotify.h index df3a7d97a9..c00ba0012e 100644 --- a/plugins/NewEventNotify/neweventnotify.h +++ b/plugins/NewEventNotify/neweventnotify.h @@ -146,9 +146,6 @@ #define POPUP_COMMENT_EMAILEXP "ICQ Email express" #define POPUP_COMMENT_OTHER "Unknown Event" -#define OPTIONS_GROUP "PopUps" -#define OPTIONS_TITLE "Event Notify" - #define MENUITEM_NAME "Notify of new events" #define MENUITEM_ENABLE "Enable new event notification" diff --git a/plugins/NewEventNotify/options.cpp b/plugins/NewEventNotify/options.cpp index 834fb07474..2e22a9f5cd 100644 --- a/plugins/NewEventNotify/options.cpp +++ b/plugins/NewEventNotify/options.cpp @@ -296,14 +296,14 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, L int OptionsAdd(HINSTANCE hInst, WPARAM addInfo) { - OPTIONSDIALOGPAGE odp; if (ServiceExists(MS_POPUP_ADDPOPUP)) { + OPTIONSDIALOGPAGE odp = { 0 }; odp.cbSize = sizeof(odp); odp.hInstance = hInst; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT); - odp.ptszTitle = TranslateT(OPTIONS_TITLE); - odp.ptszGroup = TranslateT(OPTIONS_GROUP); - odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR; + odp.pszTitle = LPGEN("Event Notify"); + odp.pszGroup = LPGEN("PopUps"); + odp.flags = ODPF_BOLDGROUPS; odp.pfnDlgProc = OptionsDlgProc; Options_AddPage( addInfo, &odp); } -- cgit v1.2.3