Commit 03ac3b5e authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

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.
parent 9bcb9c16
......@@ -146,10 +146,9 @@ 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;
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)
......
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