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:
parent
274a82b33c
commit
aa2ed73387
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue