summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-17 09:58:47 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-17 09:58:47 +0000
commitbe8883731cd7b57f96c39be19ab97b1946b131a6 (patch)
treefd98dc9f894fd397186c8150f0be93bc33684589 /protocols/Tox
parentd73ec8491056f109d8470b973e9f514a26644010 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10213 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index 5da018a496..fb0f8f1ce5 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -173,7 +173,7 @@ int __cdecl CToxProto::SendMsg(MCONTACT hContact, int flags, const char* msg)
ULONG messageId = InterlockedIncrement(&hMessageProcess);
int result = tox_send_message_withid(tox, number, messageId, (uint8_t*)msg, strlen(msg));
- if (result < 0)
+ if (result <= 0)
{
debugLogA("CToxProto::SendMsg: error sending message %i", result);
return 0;