mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 09:25:05 +01:00
Prevent infinite VFS read loop on EOF
This commit is contained in:
parent
f078a5d1ec
commit
d8ff318a1a
@ -38,6 +38,8 @@ namespace skyline::vfs {
|
||||
}
|
||||
|
||||
throw exception("Failed to read from fd: {}", strerror(errno));
|
||||
} else if (ret == 0) {
|
||||
return bytesRead;
|
||||
} else {
|
||||
bytesRead += static_cast<size_t>(ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user