mirror of
https://github.com/reactos/wine.git
synced 2025-02-10 14:23:52 +00:00
shlwapi: Only check for NULL pointers in HashData.
This commit is contained in:
parent
20ac06134e
commit
6c6088078d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user