-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
The index on apUICommand is always 0ul here, so only one command is ever returned.
It should be i or fetched I think.
| m_current->CopyTo(&apUICommand[0]); |
// IEnumExplorerCommand
IFACEMETHODIMP Next(ULONG celt, __out_ecount_part(celt, *pceltFetched) IExplorerCommand** apUICommand, __out_opt ULONG* pceltFetched)
{
ULONG fetched{ 0 };
wil::assign_to_opt_param(pceltFetched, 0ul);
for (ULONG i = 0; (i < celt) && (m_current != m_commands.cend()); i++)
{
m_current->CopyTo(&apUICommand[0]);
m_current++;
fetched++;
}
wil::assign_to_opt_param(pceltFetched, fetched);
return (fetched == celt) ? S_OK : S_FALSE;
}Metadata
Metadata
Assignees
Labels
No labels