From 31c2fb7d7a2b0780ea2c077c53289cee398ae715 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 21 Oct 2022 22:07:31 +0100 Subject: [PATCH] Fixup IDirectory read --- app/src/main/cpp/skyline/services/fssrv/IDirectory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = {