Prevent infinite VFS read loop on EOF

This commit is contained in:
Billy Laws 2022-05-11 22:03:39 +01:00
parent f078a5d1ec
commit d8ff318a1a

View File

@ -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);
}