[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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue