diff --git a/app/src/main/cpp/skyline/services/fssrv/IDirectory.cpp b/app/src/main/cpp/skyline/services/fssrv/IDirectory.cpp index 37a05e6e..75c7c681 100644 --- a/app/src/main/cpp/skyline/services/fssrv/IDirectory.cpp +++ b/app/src/main/cpp/skyline/services/fssrv/IDirectory.cpp @@ -28,7 +28,7 @@ namespace skyline::service::fssrv { auto outputEntries{request.outputBuf.at(0).cast()}; size_t i{}; - for (; i < std::min(entries.size(), outputEntries.size()); i++) { + for (; i < std::min(entries.size() - remainingReadCount, outputEntries.size()); i++) { auto &entry{entries.at(i)}; outputEntries[i] = {