summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/src
diff options
context:
space:
mode:
authorVlad Mironov <mironych@googlemail.com>2014-05-26 03:32:33 +0000
committerVlad Mironov <mironych@googlemail.com>2014-05-26 03:32:33 +0000
commit5a5375019687667b06b011958c7cf595e1a80e0b (patch)
treebc2ac41168f2b1044965de5e27115187a26b62b7 /plugins/TrafficCounter/src
parentc517ae27438aa967831c5a0cf510aff30ba39071 (diff)
gcc compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@9310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src')
-rw-r--r--plugins/TrafficCounter/src/TrafficCounter.h2
-rw-r--r--plugins/TrafficCounter/src/commonheaders.h6
-rw-r--r--plugins/TrafficCounter/src/misc.cpp3
-rw-r--r--plugins/TrafficCounter/src/statistics.h2
-rw-r--r--plugins/TrafficCounter/src/vars.h4
5 files changed, 11 insertions, 6 deletions
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 <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <win2k.h>
+#include <m_system.h>
+
#include <newpluginapi.h>
#include <m_netlib.h>
#include <m_langpack.h>
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