From be8883731cd7b57f96c39be19ab97b1946b131a6 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 17 Aug 2014 09:58:47 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@10213 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') 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; -- cgit v1.2.3