urlmon: Check FLAG_ALL_DATA_READ first in protocol_read.
This commit is contained in:
parent
094c0104f0
commit
64b5adc0b6
|
@ -338,16 +338,16 @@ HRESULT protocol_read(Protocol *protocol, void *buf, ULONG size, ULONG *read_ret
|
|||
BOOL res;
|
||||
HRESULT hres = S_FALSE;
|
||||
|
||||
if(!(protocol->flags & FLAG_REQUEST_COMPLETE)) {
|
||||
*read_ret = 0;
|
||||
return E_PENDING;
|
||||
}
|
||||
|
||||
if(protocol->flags & FLAG_ALL_DATA_READ) {
|
||||
*read_ret = 0;
|
||||
return S_FALSE;
|
||||
}
|
||||
|
||||
if(!(protocol->flags & FLAG_REQUEST_COMPLETE)) {
|
||||
*read_ret = 0;
|
||||
return E_PENDING;
|
||||
}
|
||||
|
||||
while(read < size) {
|
||||
if(protocol->available_bytes) {
|
||||
ULONG len;
|
||||
|
|
Loading…
Reference in New Issue