diff options
| author | George Hazan <ghazan@miranda.im> | 2018-12-09 20:12:58 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2018-12-09 20:12:58 +0300 |
| commit | 349ce10960c26cce8c40d4184f1256512351a419 (patch) | |
| tree | 8eb9e1ee72a9bf7a45d7a9dd44ca6ea5d1688987 /protocols/Tox/src | |
| parent | 9bbf4659a403f494818a9af943426cd545f6692a (diff) | |
Sametime: useless method removed
Diffstat (limited to 'protocols/Tox/src')
| -rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index b71f664f20..7c40c86769 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -129,6 +129,9 @@ int CToxProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const wchar_t*) int CToxProto::FileResume(HANDLE hTransfer, int *action, const wchar_t **szFilename)
{
+ if (hTransfer == nullptr) // file resume canceled
+ return 1;
+
return OnFileResume(m_tox, hTransfer, action, szFilename);
}
|
