diff options
author | George Hazan <george.hazan@gmail.com> | 2013-01-03 22:11:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-01-03 22:11:27 +0000 |
commit | 53e568efe6f2a9e121ac6cf305e5fa9a84137c1a (patch) | |
tree | 60185775025f8fe3a7ed8f1f78b041c5db5770c1 /plugins/YAMN/src/yamn.cpp | |
parent | b06a96420250b0a6b8de0a3c463e4599ba16e522 (diff) |
- fix for the buffer overrun in YAMN's mime parser
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/src/yamn.cpp')
-rw-r--r-- | plugins/YAMN/src/yamn.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YAMN/src/yamn.cpp b/plugins/YAMN/src/yamn.cpp index c93225e609..3bc9d3929b 100644 --- a/plugins/YAMN/src/yamn.cpp +++ b/plugins/YAMN/src/yamn.cpp @@ -205,7 +205,7 @@ void CALLBACK TimerProc(HWND, UINT, UINT, DWORD) {
goto ChangeIsCountingStatusLabel;
}
- if (ActualAccount->TimeLeft){
+ if (ActualAccount->TimeLeft) {
ActualAccount->TimeLeft--;
isAccountCounting = TRUE;
}
@@ -239,10 +239,10 @@ ChangeIsCountingStatusLabel: #ifdef DEBUG_SYNCHRO
DebugLog(SynchroFile, "TimerProc:ActualAccountSO-read done\n");
#endif
- if (((ActualAccount->isCounting)!=0)!=isAccountCounting){
+ if (((ActualAccount->isCounting)!=0)!=isAccountCounting) {
ActualAccount->isCounting=isAccountCounting;
WORD cStatus = DBGetContactSettingWord(ActualAccount->hContact, YAMN_DBMODULE, "Status", 0);
- switch (cStatus){
+ switch (cStatus) {
case ID_STATUS_ONLINE:
case ID_STATUS_OFFLINE:
DBWriteContactSettingWord(ActualAccount->hContact, YAMN_DBMODULE, "Status", isAccountCounting?ID_STATUS_ONLINE:ID_STATUS_OFFLINE);
|