summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/Sdk
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-03-29 18:34:54 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-03-29 18:34:54 +0000
commit7460f623d00f6119979688e5c4d788a8cdc0a478 (patch)
tree695d83cacb417d2e2675632c4ace252e1d21c9cd /protocols/MRA/src/Sdk
parent91fa723b31fd3cd885d7f3dec8bc9d7e01d3bd41 (diff)
MRA: - minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/Sdk')
-rw-r--r--protocols/MRA/src/Sdk/InternetTime.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/MRA/src/Sdk/InternetTime.h b/protocols/MRA/src/Sdk/InternetTime.h
index d1bd7e50aa..7ec927e738 100644
--- a/protocols/MRA/src/Sdk/InternetTime.h
+++ b/protocols/MRA/src/Sdk/InternetTime.h
@@ -172,16 +172,16 @@ __inline DWORD InternetTimeGetTime(const CMStringA &lpszTime, INTERNET_TIME &pit
// = Thu, 21 May 1998 05:33:29 -0700 =
char sztmBuff[4096];
LPSTR lpszCurPos=sztmBuff,lpszTemp;
- size_t i,dwCurSize=4096,dwTemp;
+ size_t dwCurSize=4096,dwTemp;
memset(&pitTime, 0, sizeof(INTERNET_TIME));
WSP2SP(lpszTime, lpszTime.GetLength(), lpszCurPos, &dwCurSize);
if (dwCurSize > 3) { // день недели
if (lpszCurPos[3] == ',') {
- for (i=0; i < 8; i++) {
+ for (unsigned short i=0; i < 7; i++) {
if ( !_memicmp(lpcszenmDayOfWeakEnum[i], lpszCurPos, 3)) {
- pitTime.stTime.wDayOfWeek=(unsigned short)i;
+ pitTime.stTime.wDayOfWeek = i;
break;
}
}
@@ -202,9 +202,9 @@ __inline DWORD InternetTimeGetTime(const CMStringA &lpszTime, INTERNET_TIME &pit
if (dwCurSize > 3) { // месяц
SkeepSPWSP(lpszCurPos,dwCurSize,&lpszCurPos,&dwCurSize);
- for (i=1; i < 14; i++)
+ for (unsigned short i=1; i < 13; i++)
if ( !_memicmp(lpcszenmMonthEnum[i], lpszCurPos, 3)) {
- pitTime.stTime.wMonth=(unsigned short)i;
+ pitTime.stTime.wMonth = i;
break;
}