diff options
author | aunsane <aunsane@gmail.com> | 2018-03-03 20:36:35 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-03-03 20:36:35 +0300 |
commit | 51022062562449eb9679a931bdc5cb4d62aca682 (patch) | |
tree | 93a56d484b80b0eab1eebef9e1fb067d7ea3e7be /protocols/Tox/src/tox_avatars.cpp | |
parent | fa58f69fe117640e29cefb1b699bede4d045bc2f (diff) |
Tox: #1156
- more accurate transfer management
- unlockong file on transfer pause
- added additional logs
- cleanup
Diffstat (limited to 'protocols/Tox/src/tox_avatars.cpp')
-rw-r--r-- | protocols/Tox/src/tox_avatars.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp index 9d234b1dd8..ad2ac177e8 100644 --- a/protocols/Tox/src/tox_avatars.cpp +++ b/protocols/Tox/src/tox_avatars.cpp @@ -189,7 +189,7 @@ INT_PTR CToxProto::SetMyAvatar(WPARAM, LPARAM lParam) return 0;
}
-void CToxProto::OnGotFriendAvatarInfo(AvatarTransferParam *transfer)
+void CToxProto::OnGotFriendAvatarInfo(Tox *tox, AvatarTransferParam *transfer)
{
if (transfer->pfts.totalBytes == 0) {
MCONTACT hConact = transfer->pfts.hContact;
@@ -215,7 +215,7 @@ void CToxProto::OnGotFriendAvatarInfo(AvatarTransferParam *transfer) wchar_t path[MAX_PATH];
mir_snwprintf(path, L"%s\\%S", VARSW(L"%miranda_avatarcache%"), m_szModuleName);
- OnFileAllow(transfer->pfts.hContact, transfer, path);
+ OnFileAllow(tox, transfer->pfts.hContact, transfer, path);
}
void CToxProto::OnGotFriendAvatarData(AvatarTransferParam *transfer)
|