[Wine-devel] wininet: Hack for loading 1C:Obrazovanie client

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Июн 27 14:46:26 MSD 2008


----------- следующая часть -----------
From 9deb14f0271b72182c4ba375d671cdd1d032e26b Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на builder.office.etersoft.ru>
Date: Fri, 27 Jun 2008 14:40:20 +0400
Subject: [PATCH] wininet: Hack for loading 1C:Obrazovanie client

---
 dlls/wininet/http.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index bf6ef98..7282bbc 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1971,7 +1971,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
     if (lpszVersion)
         lpwhr->lpszVersion = WININET_strdupW(lpszVersion);
     else
-        lpwhr->lpszVersion = WININET_strdupW(g_szHttp1_1);
+        lpwhr->lpszVersion = WININET_strdupW(g_szHttp1_0);
 
     HTTP_ProcessHeader(lpwhr, szHost, lpwhs->lpszHostName, HTTP_ADDREQ_FLAG_ADD | HTTP_ADDHDR_FLAG_REQ);
 
@@ -3106,7 +3106,7 @@ static BOOL HTTP_SecureProxyConnect(LPWININETHTTPREQW lpwhr)
 
     lpszPath = HeapAlloc( GetProcessHeap(), 0, (lstrlenW( lpwhs->lpszHostName ) + 13)*sizeof(WCHAR) );
     sprintfW( lpszPath, szFormat, lpwhs->lpszHostName, lpwhs->nHostPort );
-    requestString = HTTP_BuildHeaderRequestString( lpwhr, szConnect, lpszPath, g_szHttp1_1 );
+    requestString = HTTP_BuildHeaderRequestString( lpwhr, szConnect, lpszPath, g_szHttp1_0 );
     HeapFree( GetProcessHeap(), 0, lpszPath );
 
     len = WideCharToMultiByte( CP_ACP, 0, requestString, -1,
@@ -4029,7 +4029,7 @@ BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr)
      * the connection is keep-alive by default */
     if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_VERSION, szVersion,
                              &dwBufferSize, NULL) ||
-        strcmpiW(szVersion, g_szHttp1_1))
+        strcmpiW(szVersion, g_szHttp1_0))
     {
         WCHAR szConnectionResponse[20];
         dwBufferSize = sizeof(szConnectionResponse);
-- 
1.5.4.5.GIT



Подробная информация о списке рассылки Wine-devel