Protect ILIsParent from NULL pidls.

This commit is contained in:
Dmitry Timoshkov 2003-11-04 04:21:01 +00:00 committed by Alexandre Julliard
parent 0c55534707
commit 3baa9b99fd
1 changed files with 2 additions and 0 deletions

View File

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