Andrew Nguyen : shlwapi: Only check for NULL pointers in HashData.

Alexandre Julliard julliard at winehq.org
Tue Jan 26 11:21:06 CST 2010


Module: wine
Branch: master
Commit: 6c6088078d5b936e75a4b1fb1e4cf26a4ecd2ded
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6c6088078d5b936e75a4b1fb1e4cf26a4ecd2ded

Author: Andrew Nguyen <arethusa26 at gmail.com>
Date:   Mon Jan 25 06:44:57 2010 -0600

shlwapi: Only check for NULL pointers in HashData.

---

 dlls/shlwapi/url.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c
index d266069..c6fa977 100644
--- a/dlls/shlwapi/url.c
+++ b/dlls/shlwapi/url.c
@@ -1401,8 +1401,7 @@ HRESULT WINAPI HashData(const unsigned char *lpSrc, DWORD nSrcLen,
 {
   INT srcCount = nSrcLen - 1, destCount = nDestLen - 1;
 
-  if (IsBadReadPtr(lpSrc, nSrcLen) ||
-      IsBadWritePtr(lpDest, nDestLen))
+  if (!lpSrc || !lpDest)
     return E_INVALIDARG;
 
   while (destCount >= 0)




More information about the wine-cvs mailing list