From 1c5bc9a77215afd8e59541e19acc44aaa29bcf11 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 9 May 2008 15:18:51 +0200 Subject: [PATCH] wininet: HTTP_BuildProxyRequestUrl returns a pointer. --- dlls/wininet/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index b8e3b4dd8e5..0118d7b846f 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 ); -- 2.11.4.GIT