fsa: fix ReadFile without size output

This commit is contained in:
Michael Scire 2020-03-04 20:48:39 -08:00
parent e96c84f1f0
commit f39781ec11

View file

@ -29,7 +29,7 @@ namespace ams::fs {
Result ReadFile(FileHandle handle, s64 offset, void *buffer, size_t size, const fs::ReadOption &option) {
size_t read_size;
R_TRY(ReadFile(std::addressof(size), handle, offset, buffer, size, option));
R_TRY(ReadFile(std::addressof(read_size), handle, offset, buffer, size, option));
R_UNLESS(read_size == size, fs::ResultOutOfRange());
return ResultSuccess();
}