Hans Leidekker : wininet: HTTP_BuildProxyRequestUrl returns a pointer.

Alexandre Julliard julliard at winehq.org
Mon May 12 07:12:31 CDT 2008


Module: wine
Branch: master
Commit: 1c5bc9a77215afd8e59541e19acc44aaa29bcf11
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1c5bc9a77215afd8e59541e19acc44aaa29bcf11

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Fri May  9 15:18:51 2008 +0200

wininet: HTTP_BuildProxyRequestUrl returns a pointer.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index b8e3b4d..0118d7b 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1201,7 +1201,7 @@ static UINT HTTP_DecodeBase64( LPCWSTR base64, LPSTR bin )
 }
 
 /***********************************************************************
- *  HTTP_InsertAuthorizationForHeader
+ *  HTTP_InsertAuthorization
  *
  *   Insert or delete the authorization field in the request header.
  */
@@ -1268,7 +1268,7 @@ static WCHAR *HTTP_BuildProxyRequestUrl(WININETHTTPREQW *req)
         size = 15; /* "http://" + sizeof(port#) + ":/\0" */
         size += strlenW( session->lpszHostName ) + strlenW( req->lpszPath );
 
-        if (!(url = HeapAlloc( GetProcessHeap(), 0, size * sizeof(WCHAR) ))) return FALSE;
+        if (!(url = HeapAlloc( GetProcessHeap(), 0, size * sizeof(WCHAR) ))) return NULL;
 
         sprintfW( url, format, session->lpszHostName, session->nHostPort );
         if (req->lpszPath[0] != '/') strcatW( url, slash );




More information about the wine-cvs mailing list