urlmon: Correctly handle INTERNET_STATUS_REQUEST_COMPLETE notification with no data available.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-01-19 12:34:37 +01:00 committed by Alexandre Julliard
parent 274a82b33c
commit aa2ed73387
1 changed files with 1 additions and 7 deletions

View File

@ -395,13 +395,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
if(res) { if(res) {
TRACE("available %u bytes\n", protocol->query_available); TRACE("available %u bytes\n", protocol->query_available);
if(!protocol->query_available) { if(!protocol->query_available) {
if(is_start) {
TRACE("empty file\n");
all_data_read(protocol); all_data_read(protocol);
}else {
WARN("unexpected end of file?\n");
report_result(protocol, INET_E_DOWNLOAD_FAILURE);
}
return S_OK; return S_OK;
} }
protocol->available_bytes = protocol->query_available; protocol->available_bytes = protocol->query_available;