summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-05 22:14:09 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-05 22:14:09 +0000
commit18a91339f2d9e1449887f5d993ab2f038ff56833 (patch)
treec5ee079c530794040fee8d2cfb497bd799545735 /plugins/TabSRMM/src/mim.cpp
parentb915069a9d7ad8d4da5da7a7d92d3e73a0a65346 (diff)
TabSRMM: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12344 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r--plugins/TabSRMM/src/mim.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp
index bc905e8c68..9f487ad79d 100644
--- a/plugins/TabSRMM/src/mim.cpp
+++ b/plugins/TabSRMM/src/mim.cpp
@@ -335,13 +335,10 @@ int CMimAPI::TypingMessage(WPARAM hContact, LPARAM mode)
int CMimAPI::ProtoAck(WPARAM, LPARAM lParam)
{
ACKDATA *pAck = (ACKDATA*)lParam;
- if (lParam == 0)
- return 0;
-
- int i = 0, iFound = SendQueue::NR_SENDJOBS;
- SendJob *jobs = sendQueue->getJobByIndex(0);
- if (pAck->type == ACKTYPE_MESSAGE) {
+ if ((pAck != 0) && (pAck->type == ACKTYPE_MESSAGE)) {
+ int i = 0, iFound = SendQueue::NR_SENDJOBS;
+ SendJob *jobs = sendQueue->getJobByIndex(0);
MCONTACT hMeta = db_mc_getMeta(pAck->hContact);
for (int j = 0; j < SendQueue::NR_SENDJOBS; j++) {
SendJob &p = jobs[j];
@@ -356,8 +353,6 @@ int CMimAPI::ProtoAck(WPARAM, LPARAM lParam)
break;
}
}
- if (iFound != SendQueue::NR_SENDJOBS) // no mathing entry found in this queue entry.. continue
- break;
}
if (iFound == SendQueue::NR_SENDJOBS) // no matching send info found in the queue
sendLater->processAck(pAck);