mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
correctly call HCR_GetFolderAttributes() in SHELL32_GetItemAttributes() to fix explorer's start menu root
svn path=/trunk/; revision=18920
This commit is contained in:
parent
eb40205bb8
commit
e918f31d8f
1 changed files with 4 additions and 5 deletions
|
@ -411,14 +411,13 @@ HRESULT SHELL32_GetItemAttributes (IShellFolder * psf, LPCITEMIDLIST pidl, LPDWO
|
||||||
*pdwAttributes &= dwSupportedAttr;
|
*pdwAttributes &= dwSupportedAttr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dwAttributes = *pdwAttributes;
|
||||||
|
|
||||||
if (_ILIsDrive (pidl)) {
|
if (_ILIsDrive (pidl)) {
|
||||||
*pdwAttributes &= SFGAO_HASSUBFOLDER|SFGAO_FILESYSTEM|SFGAO_FOLDER|SFGAO_FILESYSANCESTOR|
|
*pdwAttributes &= SFGAO_HASSUBFOLDER|SFGAO_FILESYSTEM|SFGAO_FOLDER|SFGAO_FILESYSANCESTOR|
|
||||||
SFGAO_DROPTARGET|SFGAO_HASPROPSHEET|SFGAO_CANLINK;
|
SFGAO_DROPTARGET|SFGAO_HASPROPSHEET|SFGAO_CANLINK;
|
||||||
} else if (_ILGetGUIDPointer (pidl)) {
|
} else if (_ILGetGUIDPointer (pidl) && HCR_GetFolderAttributes(pidl, &dwAttributes)) {
|
||||||
if (!HCR_GetFolderAttributes (pidl, pdwAttributes)) {
|
*pdwAttributes = dwAttributes;
|
||||||
*pdwAttributes &= SFGAO_HASSUBFOLDER|SFGAO_FOLDER|SFGAO_FILESYSANCESTOR|
|
|
||||||
SFGAO_DROPTARGET|SFGAO_HASPROPSHEET|SFGAO_CANRENAME|SFGAO_CANLINK;
|
|
||||||
}
|
|
||||||
} else if (_ILGetDataPointer (pidl)) {
|
} else if (_ILGetDataPointer (pidl)) {
|
||||||
dwAttributes = _ILGetFileAttributes (pidl, NULL, 0);
|
dwAttributes = _ILGetFileAttributes (pidl, NULL, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue