Hans Leidekker : winhttp: Fill the read buffer first in drain_content.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Dec 9 15:35:50 CST 2014
Module: wine
Branch: master
Commit: 4ac817b6c0c300fbf3f30a3ba2fe78651b8ab88c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ac817b6c0c300fbf3f30a3ba2fe78651b8ab88c
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Dec 9 12:46:23 2014 +0100
winhttp: Fill the read buffer first in drain_content.
---
dlls/winhttp/request.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 62e9c75..75a229d 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -2148,6 +2148,7 @@ static void drain_content( request_t *request )
DWORD bytes_read;
char buffer[2048];
+ refill_buffer( request, FALSE );
for (;;)
{
if (!read_data( request, buffer, sizeof(buffer), &bytes_read, FALSE ) || !bytes_read) return;
More information about the wine-cvs
mailing list