mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 11:25:07 +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));
|
throw exception("Failed to read from fd: {}", strerror(errno));
|
||||||
|
} else if (ret == 0) {
|
||||||
|
return bytesRead;
|
||||||
} else {
|
} else {
|
||||||
bytesRead += static_cast<size_t>(ret);
|
bytesRead += static_cast<size_t>(ret);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user