mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user