From 5a5375019687667b06b011958c7cf595e1a80e0b Mon Sep 17 00:00:00 2001 From: Vlad Mironov Date: Mon, 26 May 2014 03:32:33 +0000 Subject: gcc compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@9310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TrafficCounter/src/TrafficCounter.h | 2 +- plugins/TrafficCounter/src/commonheaders.h | 6 ++++++ plugins/TrafficCounter/src/misc.cpp | 3 ++- plugins/TrafficCounter/src/statistics.h | 2 +- plugins/TrafficCounter/src/vars.h | 4 +--- 5 files changed, 11 insertions(+), 6 deletions(-) (limited to 'plugins/TrafficCounter/src') diff --git a/plugins/TrafficCounter/src/TrafficCounter.h b/plugins/TrafficCounter/src/TrafficCounter.h index 825344d5ed..a033d67289 100644 --- a/plugins/TrafficCounter/src/TrafficCounter.h +++ b/plugins/TrafficCounter/src/TrafficCounter.h @@ -84,4 +84,4 @@ int PaintTrafficCounterWindow(HWND, HDC); INT_PTR MenuCommand_TrafficShowHide(WPARAM, LPARAM); void Traffic_AddMainMenuItem(void); -#endif; +#endif diff --git a/plugins/TrafficCounter/src/commonheaders.h b/plugins/TrafficCounter/src/commonheaders.h index dfc2e4d9ca..55d5af287b 100644 --- a/plugins/TrafficCounter/src/commonheaders.h +++ b/plugins/TrafficCounter/src/commonheaders.h @@ -22,11 +22,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define _CRT_SECURE_NO_WARNINGS +#ifndef _WIN32_IE +#define _WIN32_IE 0x0500 +#endif + #include #include #include #include +#include + #include #include #include diff --git a/plugins/TrafficCounter/src/misc.cpp b/plugins/TrafficCounter/src/misc.cpp index 6320117246..cf1215ec8a 100644 --- a/plugins/TrafficCounter/src/misc.cpp +++ b/plugins/TrafficCounter/src/misc.cpp @@ -189,7 +189,8 @@ WORD GetDurationFormatM(DWORD Duration, TCHAR *Format, TCHAR *Buffer, WORD Size) *Res; // Промежуточный результат. Res = (TCHAR*)malloc(sizeof(TCHAR)); // Выделяем чуть-чуть памяти под результат, но это только начало. - SecureZeroMemory(Res, sizeof(TCHAR)); + //SecureZeroMemory(Res, sizeof(TCHAR)); + Res[0] = 0; for (FormatIndex = 0; Format[FormatIndex];) { diff --git a/plugins/TrafficCounter/src/statistics.h b/plugins/TrafficCounter/src/statistics.h index 17b7d5c4e3..ebe368e27d 100644 --- a/plugins/TrafficCounter/src/statistics.h +++ b/plugins/TrafficCounter/src/statistics.h @@ -42,4 +42,4 @@ DWORD Stat_GetItemValue(WORD SelectedAccs, BYTE Interval, DWORD ItemNum, BYTE Su DWORD Stat_GetRecordsNumber(BYTE AccNum, BYTE Interval); BYTE Stat_GetEldestAcc(WORD SelectedAccs); -#endif _statistics_h \ No newline at end of file +#endif // _statistics_h \ No newline at end of file diff --git a/plugins/TrafficCounter/src/vars.h b/plugins/TrafficCounter/src/vars.h index 0b35ec2670..36aa5135f7 100644 --- a/plugins/TrafficCounter/src/vars.h +++ b/plugins/TrafficCounter/src/vars.h @@ -1,9 +1,7 @@ #ifndef _vars_h #define _vars_h -//extern BYTE numProto; extern int NumberOfAccounts; -//extern PROTOLIST *ProtoList; void RegisterVariablesTokens(void); -#endif _vars_h \ No newline at end of file +#endif // _vars_h \ No newline at end of file -- cgit v1.2.3