wine/dlls/wininet http.c
ChangeSet ID: 21484 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/28 05:05:32 Modified files: dlls/wininet : http.c Log message: Robert Shearman <rob(a)codeweavers.com> Replace some useless checks in HTTP_AddProxyInfo with asserts. Patch: http://cvs.winehq.org/patch.py?id=21484 Old revision New revision Changes Path 1.118 1.119 +2 -10 wine/dlls/wininet/http.c Index: wine/dlls/wininet/http.c diff -u -p wine/dlls/wininet/http.c:1.118 wine/dlls/wininet/http.c:1.119 --- wine/dlls/wininet/http.c:1.118 28 Nov 2005 11: 5:32 -0000 +++ wine/dlls/wininet/http.c 28 Nov 2005 11: 5:32 -0000 @@ -363,18 +363,10 @@ static void HTTP_AddProxyInfo( LPWININET 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,
participants (1)
-
Alexandre Julliard