[PATCH] Avoid potential NULL dereferences
Paul Vriens
Paul.Vriens.Wine at gmail.com
Thu Jul 30 06:48:31 CDT 2009
---
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)
--
1.6.0.6
--------------080907030505070809070505--
More information about the wine-patches
mailing list