Commit 64b5adc0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

urlmon: Check FLAG_ALL_DATA_READ first in protocol_read.

parent 094c0104
......@@ -338,14 +338,14 @@ HRESULT protocol_read(Protocol *protocol, void *buf, ULONG size, ULONG *read_ret
BOOL res;
HRESULT hres = S_FALSE;
if(!(protocol->flags & FLAG_REQUEST_COMPLETE)) {
if(protocol->flags & FLAG_ALL_DATA_READ) {
*read_ret = 0;
return E_PENDING;
return S_FALSE;
}
if(protocol->flags & FLAG_ALL_DATA_READ) {
if(!(protocol->flags & FLAG_REQUEST_COMPLETE)) {
*read_ret = 0;
return S_FALSE;
return E_PENDING;
}
while(read < size) {
......
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