Replace some useless checks in HTTP_AddProxyInfo with asserts.

This commit is contained in:
Robert Shearman 2005-11-28 11:28:06 +01:00 committed by Alexandre Julliard
parent 13e3cad0d0
commit 0adec2b3dc
1 changed files with 2 additions and 10 deletions

View File

@ -363,18 +363,10 @@ static void HTTP_AddProxyInfo( LPWININETHTTPREQW lpwhr )
LPWININETAPPINFOW hIC = NULL;
lpwhs = (LPWININETHTTPSESSIONW) lpwhr->hdr.lpwhparent;
if (NULL == lpwhs || lpwhs->hdr.htype != WH_HHTTPSESSION)
{
INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE);
return;
}
assert(lpwhs->hdr.htype == WH_HHTTPSESSION);
hIC = (LPWININETAPPINFOW) lpwhs->hdr.lpwhparent;
if (NULL == hIC || hIC->hdr.htype != WH_HINIT)
{
INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE);
return;
}
assert(hIC->hdr.htype == WH_HINIT);
if (hIC && (hIC->lpszProxyUsername || hIC->lpszProxyPassword ))
HTTP_InsertProxyAuthorization(lpwhr, hIC->lpszProxyUsername,