From fe7958aa0b68699a2b1939d0afab99ba86b7ad2c Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 8 Jan 2008 17:16:51 +0000 Subject: [PATCH] fix downloader! svn path=/trunk/; revision=31673 --- reactos/dll/win32/wininet/http.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/wininet/http.c b/reactos/dll/win32/wininet/http.c index dc8e14d61c0..7002e95254f 100644 --- a/reactos/dll/win32/wininet/http.c +++ b/reactos/dll/win32/wininet/http.c @@ -3027,8 +3027,11 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr) /* * HACK peek at the buffer */ +#if 0 + /* This is Wine code, we don't support MSG_PEEK yet so we have to do it + a bit different */ NETCON_recv(&lpwhr->netConnection, buffer, buflen, MSG_PEEK, &rc); - +#endif /* * We should first receive 'HTTP/1.x nnn OK' where nnn is the status code. */ @@ -3036,6 +3039,9 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr) memset(buffer, 0, MAX_REPLY_LEN); if (!NETCON_getNextLine(&lpwhr->netConnection, bufferA, &buflen)) goto lend; +#if 1 + rc = buflen; +#endif MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffer, MAX_REPLY_LEN ); /* regenerate raw headers */