From b578852e420a650d85a0ecd0308dab0a0385ba65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 8 Jan 2008 17:25:01 +0000 Subject: [PATCH] Update _ros.diff file after r31673 svn path=/trunk/; revision=31674 --- reactos/dll/win32/wininet/wininet_ros.diff | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/reactos/dll/win32/wininet/wininet_ros.diff b/reactos/dll/win32/wininet/wininet_ros.diff index 0a9cf51cf72..ea9d5f385b7 100644 --- a/reactos/dll/win32/wininet/wininet_ros.diff +++ b/reactos/dll/win32/wininet/wininet_ros.diff @@ -23,6 +23,28 @@ Index: http.c WINE_DEFAULT_DEBUG_CHANNEL(wininet); static const WCHAR g_szHttp1_0[] = {' ','H','T','T','P','/','1','.','0',0 }; +@@ -3027,14 +3028,21 @@ + /* + * 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. + */ + buflen = MAX_REPLY_LEN; + 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 */ Index: inet_ntop.c =================================================================== --- inet_ntop.c (revision 30893)