Commit aa2ed733 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

urlmon: Correctly handle INTERNET_STATUS_REQUEST_COMPLETE notification with no data available.

parent 274a82b3
......@@ -395,13 +395,7 @@ HRESULT protocol_continue(Protocol *protocol, PROTOCOLDATA *data)
if(res) {
TRACE("available %u bytes\n", protocol->query_available);
if(!protocol->query_available) {
if(is_start) {
TRACE("empty file\n");
all_data_read(protocol);
}else {
WARN("unexpected end of file?\n");
report_result(protocol, INET_E_DOWNLOAD_FAILURE);
}
all_data_read(protocol);
return S_OK;
}
protocol->available_bytes = protocol->query_available;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment