mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 05:15:08 +01:00
Fix backing read size check
I buggered this one up and broke all reads during the refactor, so fix that.
This commit is contained in:
parent
6390561f0f
commit
a8dafc10e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user