Allow passing NULL to ILFindLastID.
This commit is contained in:
parent
17790040bf
commit
f6e1be6afe
|
@ -183,10 +183,14 @@ BOOL WINAPI ILGetDisplayName(LPCITEMIDLIST pidl, LPVOID path)
|
|||
* observed: pidl=Desktop return=pidl
|
||||
*/
|
||||
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
|
||||
{ LPCITEMIDLIST pidlLast = pidl;
|
||||
{
|
||||
LPCITEMIDLIST pidlLast = pidl;
|
||||
|
||||
TRACE("(pidl=%p)\n",pidl);
|
||||
|
||||
if (!pidl)
|
||||
return NULL;
|
||||
|
||||
while (pidl->mkid.cb)
|
||||
{
|
||||
pidlLast = pidl;
|
||||
|
|
Loading…
Reference in New Issue