Module: wine Branch: master Commit: fededdd2d7a27afa9bc04aabb9aa4498018a2ede URL: http://source.winehq.org/git/wine.git/?a=commit;h=fededdd2d7a27afa9bc04aabb9...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Thu Jul 30 13:48:31 2009 +0200
wininet: Avoid potential NULL dereferences (Coverity).
---
dlls/wininet/dialogs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c index d66e7e3..2c4a527 100644 --- a/dlls/wininet/dialogs.c +++ b/dlls/wininet/dialogs.c @@ -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)