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
1 changed files with 1 additions and 2 deletions

View File

@ -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)