From 349ce10960c26cce8c40d4184f1256512351a419 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Dec 2018 20:12:58 +0300 Subject: Sametime: useless method removed --- protocols/Tox/src/tox_proto.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/Tox') 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); } -- cgit v1.2.3