diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-10 16:52:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-10 16:52:55 +0000 |
commit | 568b27ff1197231b26d097dc05bcbb27ddd53efa (patch) | |
tree | f869b9bcd4728d3635b1c8af89b5f324e96f7482 /plugins/TabSRMM/src/mim.cpp | |
parent | 247b795b92ea954f376d029a24b945d45458ab10 (diff) |
memory corruption fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5637 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 1b13bdc5f1..0d75bd4532 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -436,7 +436,7 @@ int CMimAPI::TypingMessage(WPARAM wParam, LPARAM lParam) }
else fShowOnClist = FALSE;
- if ((!foundWin || !(pContainer->dwFlags&CNT_NOSOUND)) && preTyping != (lParam != 0))
+ if ((!foundWin || !(pContainer->dwFlags & CNT_NOSOUND)) && preTyping != (lParam != 0))
SkinPlaySound((lParam) ? "TNStart" : "TNStop");
if (M.GetByte(SRMSGMOD, "ShowTypingPopup", 0)) {
@@ -529,18 +529,15 @@ int CMimAPI::ProtoAck(WPARAM wParam, LPARAM lParam) return 0;
}
}
- if (iFound == SendQueue::NR_SENDJOBS) // no mathing entry found in this queue entry.. continue
+ if (iFound == SendQueue::NR_SENDJOBS) // no mathing entry found in this queue entry.. continue
continue;
else
break;
}
- if (iFound == SendQueue::NR_SENDJOBS) { // no matching send info found in the queue
- sendLater->processAck(pAck); //
- return 0; // try to find the process handle in the list of open send later jobs
- } else { // the job was found
+ if (iFound == SendQueue::NR_SENDJOBS) // no matching send info found in the queue
+ sendLater->processAck(pAck);
+ else // try to find the process handle in the list of open send later jobs
SendMessage(jobs[iFound].hwndOwner, HM_EVENTSENT, (WPARAM)MAKELONG(iFound, i), lParam);
- return 0;
- }
}
return 0;
}
@@ -556,7 +553,7 @@ int CMimAPI::PrebuildContactMenu(WPARAM wParam, LPARAM lParam) if (szProto) {
// leave this menu item hidden for chats
if ( !db_get_b(hContact, szProto, "ChatRoom", 0 ))
- if ( CallProtoService( szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND )
+ if ( CallProtoService( szProto, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IMSEND)
bEnabled = true;
}
|