urlmon: Don't ignore bytes read from IInternetProtocol_Read if hres is not S_OK (e.g., E_PENDING).
Bytes can still be read with E_PENDING returned if the whole request could not be satisfied, don't ignore those.
This commit is contained in:
parent
9bcb9c16ec
commit
03ac3b5e95
@ -146,11 +146,10 @@ static void fill_stream_buffer(ProtocolStream *This)
|
||||
|
||||
This->hres = IInternetProtocol_Read(This->protocol, This->buf+This->buf_size,
|
||||
sizeof(This->buf)-This->buf_size, &read);
|
||||
if(SUCCEEDED(This->hres)) {
|
||||
This->buf_size += read;
|
||||
if(read > 0)
|
||||
This->init_buf = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
static LRESULT WINAPI notif_wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user