mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-22 12:34:47 +00:00
fsa: fix ReadFile without size output
This commit is contained in:
parent
e96c84f1f0
commit
f39781ec11
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue