From ee2e419778605a5445474a33a29f2cfbb7eed245 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jul 2012 08:35:51 +0000 Subject: bunch of fixes for various memory-related problems git-svn-id: http://svn.miranda-ng.org/main/trunk@1001 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/neweventnotify.h | 65 +++++++++++++++++---------------- 1 file changed, 33 insertions(+), 32 deletions(-) (limited to 'plugins/NewEventNotify/neweventnotify.h') diff --git a/plugins/NewEventNotify/neweventnotify.h b/plugins/NewEventNotify/neweventnotify.h index c00ba0012e..3818e410e9 100644 --- a/plugins/NewEventNotify/neweventnotify.h +++ b/plugins/NewEventNotify/neweventnotify.h @@ -154,30 +154,30 @@ //--------------------------- //---Structures -typedef struct PLUGIN_OPTIONS_struct +struct PLUGIN_OPTIONS { - HINSTANCE hInst; - BOOL bDisable; - BOOL bPreview; - BOOL bMenuitem; - BOOL bDefaultColorMsg; - BOOL bDefaultColorUrl; - BOOL bDefaultColorFile; - BOOL bDefaultColorOthers; - COLORREF colBackMsg; - COLORREF colTextMsg; - COLORREF colBackUrl; - COLORREF colTextUrl; - COLORREF colBackFile; - COLORREF colTextFile; - COLORREF colBackOthers; - COLORREF colTextOthers; - UINT maskNotify; - UINT maskActL; - UINT maskActR; - UINT maskActTE; - BOOL bMsgWindowCheck; - BOOL bMsgReplyWindow; + HINSTANCE hInst; + BOOL bDisable; + BOOL bPreview; + BOOL bMenuitem; + BOOL bDefaultColorMsg; + BOOL bDefaultColorUrl; + BOOL bDefaultColorFile; + BOOL bDefaultColorOthers; + COLORREF colBackMsg; + COLORREF colTextMsg; + COLORREF colBackUrl; + COLORREF colTextUrl; + COLORREF colBackFile; + COLORREF colTextFile; + COLORREF colBackOthers; + COLORREF colTextOthers; + UINT maskNotify; + UINT maskActL; + UINT maskActR; + UINT maskActTE; + BOOL bMsgWindowCheck; + BOOL bMsgReplyWindow; int iDelayMsg; int iDelayUrl; int iDelayFile; @@ -192,28 +192,29 @@ typedef struct PLUGIN_OPTIONS_struct BOOL bHideSend; BOOL bNoRSS; BOOL bReadCheck; -} PLUGIN_OPTIONS; +}; -typedef struct EVENT_DATA_EX{ +struct EVENT_DATA_EX +{ HANDLE hEvent; int number; struct EVENT_DATA_EX* next; struct EVENT_DATA_EX* prev; -} EVENT_DATA_EX; +}; -typedef struct PLUGIN_DATA_struct { - UINT eventType; - HANDLE hContact; - PLUGIN_OPTIONS* pluginOptions; +struct PLUGIN_DATA +{ + UINT eventType; + HANDLE hContact; + PLUGIN_OPTIONS* pluginOptions; HWND hWnd; - int isUnicode; struct EVENT_DATA_EX* firstEventData; struct EVENT_DATA_EX* firstShowEventData; struct EVENT_DATA_EX* lastEventData; long countEvent; long iSeconds; int iLock; -} PLUGIN_DATA; +}; //--------------------------- //---External Procedure Definitions -- cgit v1.2.3