summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/sendqueue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-21 18:08:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-21 18:08:38 +0300
commit03ba85dcd2d47cf31d6181b40620e278f7f30427 (patch)
treeb094d6ec3070821a67455d4812d7776888eac803 /plugins/Scriver/src/sendqueue.cpp
parentd15ac078344461faee80f676b49d2194387b9862 (diff)
more warnings fixed
Diffstat (limited to 'plugins/Scriver/src/sendqueue.cpp')
-rw-r--r--plugins/Scriver/src/sendqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Scriver/src/sendqueue.cpp b/plugins/Scriver/src/sendqueue.cpp
index e9884ff369..576f7a9131 100644
--- a/plugins/Scriver/src/sendqueue.cpp
+++ b/plugins/Scriver/src/sendqueue.cpp
@@ -59,7 +59,7 @@ MessageSendQueueItem* FindSendQueueItem(MCONTACT hContact, HANDLE hSendId)
{
mir_cslock lock(queueMutex);
for (MessageSendQueueItem *item = global_sendQueue; item != nullptr; item = item->next)
- if (item->hContact == hContact && item->hSendId == hSendId)
+ if (item->hContact == hContact && HANDLE(item->hSendId) == hSendId)
return item;
return nullptr;
@@ -181,5 +181,5 @@ void SendSendQueueItem(MessageSendQueueItem* item)
}
lock.unlock();
- item->hSendId = (HANDLE)ProtoChainSend(item->hContact, PSS_MESSAGE, item->flags, (LPARAM)item->sendBuffer);
+ item->hSendId = ProtoChainSend(item->hContact, PSS_MESSAGE, item->flags, (LPARAM)item->sendBuffer);
}