Commit 6c608807 authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

shlwapi: Only check for NULL pointers in HashData.

parent 20ac0613
...@@ -1401,8 +1401,7 @@ HRESULT WINAPI HashData(const unsigned char *lpSrc, DWORD nSrcLen, ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment