Correct IShellFolder::GetAttributesOf() for the case *rgfInOut=0.

This commit is contained in:
Martin Fuchs 2004-04-13 00:19:11 +00:00 committed by Alexandre Julliard
parent c01e515815
commit b8dc8abbc0
4 changed files with 12 additions and 0 deletions

View File

@ -556,6 +556,9 @@ ISF_ControlPanel_fnGetAttributesOf(IShellFolder2 * iface, UINT cidl, LPCITEMIDLI
if ((!cidl) ||(!apidl) ||(!rgfInOut))
return E_INVALIDARG;
if (*rgfInOut == 0)
*rgfInOut = ~0;
while(cidl > 0 && *apidl) {
pdump(*apidl);
SHELL32_GetItemAttributes(_IShellFolder_(This), *apidl, rgfInOut);

View File

@ -425,6 +425,9 @@ static HRESULT WINAPI ISF_Desktop_fnGetAttributesOf (IShellFolder2 * iface,
if ((!cidl) || (!apidl) || (!rgfInOut))
return E_INVALIDARG;
if (*rgfInOut == 0)
*rgfInOut = ~0;
while (cidl > 0 && *apidl) {
pdump (*apidl);
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);

View File

@ -509,6 +509,9 @@ IShellFolder_fnGetAttributesOf (IShellFolder2 * iface, UINT cidl, LPCITEMIDLIST
if ((!cidl) || (!apidl) || (!rgfInOut))
return E_INVALIDARG;
if (*rgfInOut == 0)
*rgfInOut = ~0;
while (cidl > 0 && *apidl) {
pdump (*apidl);
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);

View File

@ -407,6 +407,9 @@ ISF_MyComputer_fnGetAttributesOf (IShellFolder2 * iface, UINT cidl, LPCITEMIDLIS
if ((!cidl) || (!apidl) || (!rgfInOut))
return E_INVALIDARG;
if (*rgfInOut == 0)
*rgfInOut = ~0;
while (cidl > 0 && *apidl) {
pdump (*apidl);
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);