Skip to content

Commit

Permalink
Merge pull request joncampbell123#4317 from Allofich/crashfix
Browse files Browse the repository at this point in the history
Fix oversight in clearing of dirIterators
  • Loading branch information
joncampbell123 authored Jun 5, 2023
2 parents ccdd946 + ef4cf14 commit 82c83ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dos/drive_iso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2338,8 +2338,8 @@ void isoDrive :: EmptyCache(void) {
//this->fileName[0] = '\0'; /* deleted to fix issue #3848. Revert this if there are any flaws */
//this->discLabel[0] = '\0'; /* deleted to fix issue #3848. Revert this if there are any flaws */
nextFreeDirIterator = 0;
size_t dirIteratorsSize = sizeof(dirIterators);
for(std::size_t i = 0; i < dirIteratorsSize; ++i) {
size_t numberOfDirIterators = sizeof(dirIterators) / sizeof(dirIterators[0]);
for(std::size_t i = 0; i < numberOfDirIterators; ++i) {
dirIterators[i] = isoDrive::DirIterator{};
}
memset(sectorHashEntries, 0, sizeof(sectorHashEntries));
Expand Down

0 comments on commit 82c83ac

Please sign in to comment.