Commit ad1fbf2e authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Only return FALSE in IEnumIDList_fnNext if no item could be fetched at

all.
parent 26904868
......@@ -443,11 +443,14 @@ static HRESULT WINAPI IEnumIDList_fnNext(
{ return E_INVALIDARG;
}
if(celt > 0 && !This->mpCurrent)
{ return S_FALSE;
}
for(i = 0; i < celt; i++)
{ if(!(This->mpCurrent))
{ hr = S_FALSE;
break;
}
temp = ILClone(This->mpCurrent->pidl);
rgelt[i] = temp;
This->mpCurrent = This->mpCurrent->pNext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment