Commit 607c810a authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard

Fix problem comparing pidls and return correct code.

parent 2bdbf30b
......@@ -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
......
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