Hans Leidekker : wininet: Remove dead code from HTTP_DealWithProxy and improve its debug trace.
Alexandre Julliard
julliard at winehq.org
Tue Apr 1 06:51:27 CDT 2008
Module: wine
Branch: master
Commit: 729631d907820f8f717d0b6df2dddc0fc024b400
URL: http://source.winehq.org/git/wine.git/?a=commit;h=729631d907820f8f717d0b6df2dddc0fc024b400
Author: Hans Leidekker <hans at it.vu.nl>
Date: Mon Mar 31 20:25:40 2008 +0200
wininet: Remove dead code from HTTP_DealWithProxy and improve its debug trace.
---
dlls/wininet/http.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index a197c43..6198651 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1269,12 +1269,10 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
{
WCHAR buf[MAXHOSTNAME];
WCHAR proxy[MAXHOSTNAME + 15]; /* 15 == "http://" + sizeof(port#) + ":/\0" */
- WCHAR* url;
static WCHAR szNul[] = { 0 };
URL_COMPONENTSW UrlComponents;
static const WCHAR szHttp[] = { 'h','t','t','p',':','/','/',0 };
static const WCHAR szFormat[] = { 'h','t','t','p',':','/','/','%','s',0 };
- int len;
memset( &UrlComponents, 0, sizeof UrlComponents );
UrlComponents.dwStructSize = sizeof UrlComponents;
@@ -1293,11 +1291,6 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
if( !lpwhr->lpszPath )
lpwhr->lpszPath = szNul;
- TRACE("server=%s path=%s\n",
- debugstr_w(lpwhs->lpszHostName), debugstr_w(lpwhr->lpszPath));
- /* for constant 15 see above */
- len = strlenW(lpwhs->lpszHostName) + strlenW(lpwhr->lpszPath) + 15;
- url = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
if(UrlComponents.nPort == INTERNET_INVALID_PORT_NUMBER)
UrlComponents.nPort = INTERNET_DEFAULT_HTTP_PORT;
@@ -1306,6 +1299,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
lpwhs->lpszServerName = WININET_strdupW(UrlComponents.lpszHostName);
lpwhs->nServerPort = UrlComponents.nPort;
+ TRACE("proxy server=%s port=%d\n", debugstr_w(lpwhs->lpszServerName), lpwhs->nServerPort);
return TRUE;
}
More information about the wine-cvs
mailing list