shlwapi: Only check for NULL pointers in HashData.

This commit is contained in:
Andrew Nguyen 2010-01-25 06:44:57 -06:00 committed by Alexandre Julliard
parent 20ac06134e
commit 6c6088078d

View File

@ -1401,8 +1401,7 @@ HRESULT WINAPI HashData(const unsigned char *lpSrc, DWORD nSrcLen,
{ {
INT srcCount = nSrcLen - 1, destCount = nDestLen - 1; INT srcCount = nSrcLen - 1, destCount = nDestLen - 1;
if (IsBadReadPtr(lpSrc, nSrcLen) || if (!lpSrc || !lpDest)
IsBadWritePtr(lpDest, nDestLen))
return E_INVALIDARG; return E_INVALIDARG;
while (destCount >= 0) while (destCount >= 0)