Protect ILIsParent from NULL pidls.
This commit is contained in:
parent
0c55534707
commit
3baa9b99fd
|
@ -543,6 +543,8 @@ BOOL WINAPI ILIsParent(LPCITEMIDLIST pidlParent, LPCITEMIDLIST pidlChild, BOOL b
|
|||
|
||||
TRACE("%p %p %x\n", pidlParent, pidlChild, bImmediate);
|
||||
|
||||
if (!pParent || !pChild) return FALSE;
|
||||
|
||||
while (pParent->mkid.cb && pChild->mkid.cb)
|
||||
{
|
||||
_ILSimpleGetText(pParent, szData1, MAX_PATH);
|
||||
|
|
Loading…
Reference in New Issue