diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-29 09:09:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-29 09:09:11 +0000 |
commit | 8ff87302691c7cd52b50d279e653732e1a00b97c (patch) | |
tree | c56b1334d404f6fc978433a5b2be72db9fecfb82 /plugins/NewEventNotify | |
parent | df7e4fc7ed4c31d518cd0dd93979d7fc2852e460 (diff) |
fix for crash in NEN options‏
git-svn-id: http://svn.miranda-ng.org/main/trunk@681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewEventNotify')
-rw-r--r-- | plugins/NewEventNotify/neweventnotify.h | 3 | ||||
-rw-r--r-- | 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);
}
|