From a8dafc10e0487d3af1f1008e02f48c512cb8dd4c Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 6 Mar 2021 14:46:58 +0000 Subject: [PATCH] Fix backing read size check I buggered this one up and broke all reads during the refactor, so fix that. --- app/src/main/cpp/skyline/vfs/backing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/vfs/backing.h b/app/src/main/cpp/skyline/vfs/backing.h index 71be351a..123f2c44 100644 --- a/app/src/main/cpp/skyline/vfs/backing.h +++ b/app/src/main/cpp/skyline/vfs/backing.h @@ -73,7 +73,7 @@ namespace skyline::vfs { if ((size - offset) < output.size()) throw exception("Trying to read past the end of a backing: 0x{:X}/0x{:X} (Offset: 0x{:X})", output.size(), size, offset); - if (ReadUnchecked(output, offset) != size) + if (ReadUnchecked(output, offset) != output.size()) throw exception("Failed to read the requested size from backing"); return size;