Fix problem comparing pidls and return correct code.

oldstable
Guy Albertelli 2001-09-19 22:26:53 +00:00 committed by Alexandre Julliard
parent 2bdbf30bb9
commit 607c810ac2
1 changed files with 6 additions and 2 deletions

View File

@ -896,9 +896,13 @@ static HRESULT WINAPI IShellFolder_fnCompareIDs(
}
ILFree(pidlTemp);
}
else
else /* no deeper on #1 */
{
hr = ResultFromShort(nReturn); /* two equal simple pidls */
pidl2 = ILGetNext(pidl2);
if (pidl2 && pidl2->mkid.cb) /* go deeper on #2 ? */
hr = ResultFromShort(-1); /* two different */
else
hr = ResultFromShort(nReturn); /* two equal simple pidls */
}
}
else