Skip to content

Commit

Permalink
Take 2 on fixing weird filesystem crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
indigodarkwolf committed May 4, 2024
1 parent dd9df4e commit 281252b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ieee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static int continue_directory_listing(uint8_t *data)
}
}

int file_size = (std::filesystem::is_directory(st) || std::filesystem::is_symlink(st)) ? 0 : static_cast<int>((std::filesystem::file_size(dp.path()) + 255) / 256);
int file_size = (!std::filesystem::is_regular_file(st)) ? 0 : static_cast<int>((std::filesystem::file_size(dp.path()) + 255) / 256);
if (file_size > 0xFFFF) {
file_size = 0xFFFF;
}
Expand Down

0 comments on commit 281252b

Please sign in to comment.