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
|
* observed: pidl=Desktop return=pidl
|
||||||
*/
|
*/
|
||||||
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
|
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
|
||||||
{ LPCITEMIDLIST pidlLast = pidl;
|
{
|
||||||
|
LPCITEMIDLIST pidlLast = pidl;
|
||||||
|
|
||||||
TRACE("(pidl=%p)\n",pidl);
|
TRACE("(pidl=%p)\n",pidl);
|
||||||
|
|
||||||
|
if (!pidl)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
while (pidl->mkid.cb)
|
while (pidl->mkid.cb)
|
||||||
{
|
{
|
||||||
pidlLast = pidl;
|
pidlLast = pidl;
|
||||||
|
|
Loading…
Reference in New Issue