Skip to content

Commit

Permalink
Fix issue in IEnumExplorerCommand::Next for shell extension. (Thanks …
Browse files Browse the repository at this point in the history
…to cnbluefire.)
  • Loading branch information
MouriNaruto committed May 7, 2024
1 parent 6fbdedc commit 912d8ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NanaZip.UI.Classic/NanaZipShellExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,9 +1006,9 @@ namespace NanaZip::ShellExtension
(this->m_CurrentSubCommand != this->m_SubCommands.cend());
++i)
{
this->m_CurrentSubCommand->copy_to(&pUICommand[0]);
++this->m_CurrentSubCommand;
this->m_CurrentSubCommand->copy_to(&pUICommand[i]);
++Fetched;
++this->m_CurrentSubCommand;
}

if (pceltFetched)
Expand Down
4 changes: 2 additions & 2 deletions NanaZip.UI.Modern/NanaZip.ShellExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,9 +1006,9 @@ namespace NanaZip::ShellExtension
(this->m_CurrentSubCommand != this->m_SubCommands.cend());
++i)
{
this->m_CurrentSubCommand->copy_to(&pUICommand[0]);
++this->m_CurrentSubCommand;
this->m_CurrentSubCommand->copy_to(&pUICommand[i]);
++Fetched;
++this->m_CurrentSubCommand;
}

if (pceltFetched)
Expand Down

0 comments on commit 912d8ce

Please sign in to comment.