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:
Misha Koshelev 2007-07-23 20:30:17 -05:00 committed by Alexandre Julliard
parent 9bcb9c16ec
commit 03ac3b5e95
1 changed files with 2 additions and 3 deletions

View File

@ -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)