mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[SHELL32] - Accept NULL pidl in CRegFolder::GetDisplayNameOf. CORE-12317
svn path=/trunk/; revision=73236
This commit is contained in:
parent
4a5fe31949
commit
46512f3a37
1 changed files with 2 additions and 2 deletions
|
@ -356,10 +356,10 @@ HRESULT WINAPI CRegFolder::GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_CH
|
|||
|
||||
HRESULT WINAPI CRegFolder::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPSTRRET strRet)
|
||||
{
|
||||
if (!strRet || !_ILIsSpecialFolder(pidl))
|
||||
if (!strRet || (!_ILIsSpecialFolder(pidl) && pidl != NULL))
|
||||
return E_INVALIDARG;
|
||||
|
||||
if (!pidl->mkid.cb)
|
||||
if (!pidl || !pidl->mkid.cb)
|
||||
{
|
||||
if ((GET_SHGDN_RELATION(dwFlags) == SHGDN_NORMAL) && (GET_SHGDN_FOR(dwFlags) & SHGDN_FORPARSING))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue