shell32: IShellLink::GetIDList fix.

IShellLink::GetIDList when it fails to generate a PIDL must set ppidl
to NULL or some applications think it contains valid data.
This commit is contained in:
Aric Stewart 2007-02-22 17:19:41 +09:00 committed by Alexandre Julliard
parent aecbb11e40
commit a0ad8f38c7
1 changed files with 3 additions and 0 deletions

View File

@ -1744,7 +1744,10 @@ static HRESULT WINAPI IShellLinkW_fnGetIDList(IShellLinkW * iface, LPITEMIDLIST
TRACE("(%p)->(ppidl=%p)\n",This, ppidl);
if (!This->pPidl)
{
*ppidl = NULL;
return S_FALSE;
}
*ppidl = ILClone(This->pPidl);
return S_OK;
}