mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-05 15:48:43 +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) {
|
Result ReadFile(FileHandle handle, s64 offset, void *buffer, size_t size, const fs::ReadOption &option) {
|
||||||
size_t read_size;
|
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());
|
R_UNLESS(read_size == size, fs::ResultOutOfRange());
|
||||||
return ResultSuccess();
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue