diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-15 15:17:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-15 15:17:05 +0000 |
commit | e8f11470ac52bc89e955630d69ed8229a06acc79 (patch) | |
tree | 1922fc5a543da79dc8db3ffab647bf885f01fa87 /protocols/Tox/src/tox_transfer.cpp | |
parent | fd3c3c5c71590bb18372f84e18a51b07671dfa55 (diff) |
Tox:
- refactoring
- nodes settings in db are ansi now
- added work with tox network
git-svn-id: http://svn.miranda-ng.org/main/trunk@12124 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_transfer.cpp')
-rw-r--r-- | protocols/Tox/src/tox_transfer.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/Tox/src/tox_transfer.cpp b/protocols/Tox/src/tox_transfer.cpp index be0159dcdc..16e6694b5f 100644 --- a/protocols/Tox/src/tox_transfer.cpp +++ b/protocols/Tox/src/tox_transfer.cpp @@ -50,7 +50,7 @@ HANDLE __cdecl CToxProto::FileAllow(MCONTACT hContact, HANDLE hTransfer, const P {
if (!transfer->OpenFile(_T("wb")))
{
- debugLogA("CToxProto::FileAllow: cannot to open file (%d)", transfer->fileNumber);
+ debugLogA("CToxProto::FileAllow: failed to open file (%d)", transfer->fileNumber);
transfer->status = FAILED;
tox_file_send_control(tox, transfer->friendNumber, transfer->GetDirection(), transfer->fileNumber, TOX_FILECONTROL_KILL, NULL, 0);
transfers->Remove(transfer);
@@ -79,20 +79,17 @@ int __cdecl CToxProto::FileResume(HANDLE hTransfer, int *action, const PROTOCHAR {
case FILERESUME_RENAME:
transfer->ChangeName(*szFilename);
+ case FILERESUME_OVERWRITE:
result = transfer->OpenFile(_T("wb"));
break;
- case FILERESUME_OVERWRITE:
- result = transfer->OpenFile(_T("wb"));
+ case FILERESUME_RESUME:
+ result = transfer->OpenFile(_T("ab"));
break;
case FILERESUME_SKIP:
result = false;
break;
-
- case FILERESUME_RESUME:
- result = transfer->OpenFile(_T("ab"));
- break;
}
if (result)
|