diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-17 09:58:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-17 09:58:47 +0000 |
commit | be8883731cd7b57f96c39be19ab97b1946b131a6 (patch) | |
tree | fd98dc9f894fd397186c8150f0be93bc33684589 /protocols/Tox | |
parent | d73ec8491056f109d8470b973e9f514a26644010 (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.cpp | 2 |
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;
|