[Kernel] Return X_STATUS_END_OF_FILE for async file read when offset > file_size
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user