mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 14:05:17 -04:00
Fixed more stdio error handling
This commit is contained in:
parent
8f65beef78
commit
741d0f8116
3 changed files with 8 additions and 8 deletions
|
@ -143,11 +143,11 @@ namespace sts::ncm::impl {
|
|||
|
||||
this->StoreToCache(f, placeholder_id);
|
||||
|
||||
if (!fseek(f, 0L, SEEK_END)) {
|
||||
if (fseek(f, 0L, SEEK_END) != 0) {
|
||||
return fsdevGetLastResult();
|
||||
}
|
||||
size_t size = ftell(f);
|
||||
if (!fseek(f, 0L, SEEK_SET)) {
|
||||
if (fseek(f, 0L, SEEK_SET) != 0) {
|
||||
return fsdevGetLastResult();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue