Correct IShellFolder::GetAttributesOf() for the case *rgfInOut=0.
This commit is contained in:
parent
c01e515815
commit
b8dc8abbc0
@ -556,6 +556,9 @@ ISF_ControlPanel_fnGetAttributesOf(IShellFolder2 * iface, UINT cidl, LPCITEMIDLI
|
|||||||
if ((!cidl) ||(!apidl) ||(!rgfInOut))
|
if ((!cidl) ||(!apidl) ||(!rgfInOut))
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
if (*rgfInOut == 0)
|
||||||
|
*rgfInOut = ~0;
|
||||||
|
|
||||||
while(cidl > 0 && *apidl) {
|
while(cidl > 0 && *apidl) {
|
||||||
pdump(*apidl);
|
pdump(*apidl);
|
||||||
SHELL32_GetItemAttributes(_IShellFolder_(This), *apidl, rgfInOut);
|
SHELL32_GetItemAttributes(_IShellFolder_(This), *apidl, rgfInOut);
|
||||||
|
@ -425,6 +425,9 @@ static HRESULT WINAPI ISF_Desktop_fnGetAttributesOf (IShellFolder2 * iface,
|
|||||||
if ((!cidl) || (!apidl) || (!rgfInOut))
|
if ((!cidl) || (!apidl) || (!rgfInOut))
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
if (*rgfInOut == 0)
|
||||||
|
*rgfInOut = ~0;
|
||||||
|
|
||||||
while (cidl > 0 && *apidl) {
|
while (cidl > 0 && *apidl) {
|
||||||
pdump (*apidl);
|
pdump (*apidl);
|
||||||
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
|
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
|
||||||
|
@ -509,6 +509,9 @@ IShellFolder_fnGetAttributesOf (IShellFolder2 * iface, UINT cidl, LPCITEMIDLIST
|
|||||||
if ((!cidl) || (!apidl) || (!rgfInOut))
|
if ((!cidl) || (!apidl) || (!rgfInOut))
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
if (*rgfInOut == 0)
|
||||||
|
*rgfInOut = ~0;
|
||||||
|
|
||||||
while (cidl > 0 && *apidl) {
|
while (cidl > 0 && *apidl) {
|
||||||
pdump (*apidl);
|
pdump (*apidl);
|
||||||
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
|
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
|
||||||
|
@ -407,6 +407,9 @@ ISF_MyComputer_fnGetAttributesOf (IShellFolder2 * iface, UINT cidl, LPCITEMIDLIS
|
|||||||
if ((!cidl) || (!apidl) || (!rgfInOut))
|
if ((!cidl) || (!apidl) || (!rgfInOut))
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
if (*rgfInOut == 0)
|
||||||
|
*rgfInOut = ~0;
|
||||||
|
|
||||||
while (cidl > 0 && *apidl) {
|
while (cidl > 0 && *apidl) {
|
||||||
pdump (*apidl);
|
pdump (*apidl);
|
||||||
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
|
SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user