shell32: Use return value from IShellFolder_GetAttributesOf.

This commit is contained in:
Vincent Povirk 2015-08-14 11:41:55 -05:00 committed by Alexandre Julliard
parent b206287c91
commit 642b2fe789
1 changed files with 7 additions and 4 deletions

View File

@ -271,11 +271,14 @@ static HRESULT WINAPI ShellItem_GetAttributes(IShellItem2 *iface, SFGAOF sfgaoMa
*psfgaoAttribs &= sfgaoMask; *psfgaoAttribs &= sfgaoMask;
IShellFolder_Release(parent_folder); IShellFolder_Release(parent_folder);
if (SUCCEEDED(ret))
{
if(sfgaoMask == *psfgaoAttribs) if(sfgaoMask == *psfgaoAttribs)
return S_OK; return S_OK;
else else
return S_FALSE; return S_FALSE;
} }
}
return ret; return ret;
} }