[Kernel] Return X_STATUS_END_OF_FILE for async file read when offset > file_size

This commit is contained in:
Gliniak 2022-06-09 21:36:09 +02:00
parent d0175ddf2f
commit 90d67ac11c
1 changed files with 1 additions and 1 deletions

View File

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