diff options
-rw-r--r-- | protocols/Tox/src/tox_transfer.cpp | 4 | ||||
-rw-r--r-- | protocols/Tox/src/tox_transfer.h | 2 |
2 files changed, 3 insertions, 3 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;
diff --git a/protocols/Tox/src/tox_transfer.h b/protocols/Tox/src/tox_transfer.h index 5f3e2cbc9d..f0732ca3b0 100644 --- a/protocols/Tox/src/tox_transfer.h +++ b/protocols/Tox/src/tox_transfer.h @@ -122,7 +122,7 @@ public: FileTransferParam * Get(uint8_t fileNumber)
{
- if (transfers.find(fileNumber) == transfers.end())
+ if (transfers.find(fileNumber) != transfers.end())
{
return transfers.at(fileNumber);
}
|