[1/3] wininet: Check if pointer is not NULL before copying
Alexander Morozov
amorozov at etersoft.ru
Thu Jun 26 03:43:00 CDT 2008
Changelog:
Check if pointer is not NULL before copying
-------------- next part --------------
From ff39b6a3f62ee1a299aea1c51e06eb8b1042c19b Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov at builder.office.etersoft.ru>
Date: Thu, 26 Jun 2008 12:28:27 +0400
Subject: [PATCH] wininet: Check if pointer is not NULL before copying
---
dlls/wininet/dialogs.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c
index dd5aa31..cf6ee5c 100644
--- a/dlls/wininet/dialogs.c
+++ b/dlls/wininet/dialogs.c
@@ -75,6 +75,9 @@ static BOOL WININET_GetProxyServer( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
if (NULL == hIC)
return FALSE;
+ if (NULL == hIC->lpszProxy)
+ return FALSE;
+
lstrcpynW(szBuf, hIC->lpszProxy, sz);
/* FIXME: perhaps it would be better to use InternetCrackUrl here */
--
1.5.4.5.GIT
More information about the wine-patches
mailing list