mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Kernel] Return X_STATUS_END_OF_FILE for async file read when offset > file_size
This commit is contained in:
parent
d0175ddf2f
commit
90d67ac11c
|
|
@ -223,7 +223,7 @@ dword_result_t NtReadFile_entry(dword_t file_handle, dword_t event_handle,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!file->is_synchronous()) {
|
if (!file->is_synchronous() && result != X_STATUS_END_OF_FILE) {
|
||||||
result = X_STATUS_PENDING;
|
result = X_STATUS_PENDING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue