summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_file.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-02-08 14:54:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-02-08 14:54:39 +0300
commit12d95ea38599485662ec3f8541b14641c0254fb3 (patch)
tree0ba353aac9011b7fd314138039fe1c115298b489 /protocols/JabberG/src/jabber_file.cpp
parentdd0c36ddb76469825c06f51a647dea64a85f7af5 (diff)
fixes #3022 (Jabber file transfers don't report failure)
Diffstat (limited to 'protocols/JabberG/src/jabber_file.cpp')
-rw-r--r--protocols/JabberG/src/jabber_file.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp
index 5cbc2a8420..f7d0cd0aac 100644
--- a/protocols/JabberG/src/jabber_file.cpp
+++ b/protocols/JabberG/src/jabber_file.cpp
@@ -508,8 +508,10 @@ int filetransfer::create()
fileId = _wopen(std.szCurrentFile.w, _O_BINARY | _O_CREAT | _O_TRUNC | _O_WRONLY, _S_IREAD | _S_IWRITE);
}
- if (fileId == -1)
+ if (fileId == -1) {
+ ppro->ProtoBroadcastAck(std.hContact, ACKTYPE_FILE, ACKRESULT_FAILED, this);
ppro->debugLogW(L"Cannot create file '%s' during a file transfer", filefull);
+ }
else if (std.currentFileSize != 0)
_chsize(fileId, std.currentFileSize);