wininet: Avoid potential NULL dereferences (Coverity).

This commit is contained in:
Paul Vriens 2009-07-30 13:48:31 +02:00 committed by Alexandre Julliard
parent 1f825a3631
commit fededdd2d7
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ static BOOL WININET_GetProxyServer( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
lpwhr = (http_request_t*) WININET_GetObject( hRequest );
if (NULL == lpwhr)
goto done;
return FALSE;
lpwhs = lpwhr->lpHttpSession;
if (NULL == lpwhs)
@ -107,7 +107,7 @@ static BOOL WININET_GetServer( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
lpwhr = (http_request_t*) WININET_GetObject( hRequest );
if (NULL == lpwhr)
goto done;
return FALSE;
lpwhs = lpwhr->lpHttpSession;
if (NULL == lpwhs)