mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[SHELL32]
- HCR_GetFolderAttributes already calls GetAttributesOf when needed, calling it when it is not needed can lead to crashes. svn path=/trunk/; revision=72769
This commit is contained in:
parent
ef8e98a485
commit
e00840033e
|
@ -180,15 +180,6 @@ HRESULT CRegFolder::GetGuidItemAttributes (LPCITEMIDLIST pidl, LPDWORD pdwAttrib
|
|||
{
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* If we can't get it from the registry we have to query the child */
|
||||
CComPtr<IShellFolder> psf2;
|
||||
if (SUCCEEDED(BindToObject(pidl, 0, IID_PPV_ARG(IShellFolder, &psf2))))
|
||||
{
|
||||
return psf2->GetAttributesOf(0, NULL, pdwAttributes);
|
||||
}
|
||||
}
|
||||
|
||||
*pdwAttributes &= SFGAO_CANLINK;
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in a new issue