diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-01-19 20:40:23 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-01-19 20:40:23 +0000 |
commit | e410a9b04782e184ba9db7d4ecbd378053f2a22c (patch) | |
tree | 649f5e2b2843293ae19be5473591b6820547bafc /protocols/Tox/src/tox_transfer.cpp | |
parent | 6bd1d5b69a94f4f5971aaa60a788863e6fe6f8fd (diff) |
Tox: fixed file transfer
git-svn-id: http://svn.miranda-ng.org/main/trunk@11880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_transfer.cpp')
-rw-r--r-- | protocols/Tox/src/tox_transfer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_transfer.cpp b/protocols/Tox/src/tox_transfer.cpp index 27d41e5cc7..ce8488438b 100644 --- a/protocols/Tox/src/tox_transfer.cpp +++ b/protocols/Tox/src/tox_transfer.cpp @@ -113,7 +113,7 @@ void CToxProto::OnFileData(Tox *tox, int32_t friendNumber, uint8_t fileNumber, c if (hContact)
{
FileTransferParam *transfer = proto->transfers->Get(fileNumber);
- if (transfer = NULL)
+ if (transfer == NULL)
{
tox_file_send_control(tox, friendNumber, 1, fileNumber, TOX_FILECONTROL_KILL, NULL, 0);
return;
@@ -259,7 +259,7 @@ void CToxProto::OnFileRequest(Tox *tox, int32_t friendNumber, uint8_t receive_se {
FileTransferParam *transfer = proto->transfers->Get(fileNumber);
- if (transfer = NULL)
+ if (transfer == NULL)
{
tox_file_send_control(tox, friendNumber, receive_send, fileNumber, TOX_FILECONTROL_KILL, NULL, 0);
return;
|