[Memory] Replace forgotten InvalidateRange in NtReadFile

This commit is contained in:
Triang3l
2019-07-30 09:06:23 +03:00
parent 4aceeb73c4
commit b5fb84473d
3 changed files with 22 additions and 2 deletions

View File

@@ -172,8 +172,8 @@ dword_result_t NtReadFile(dword_t file_handle, dword_t event_handle,
// some games NtReadFile() directly into texture memory
// TODO(rick): better checking of physical address
if (buffer.guest_address() >= 0xA0000000) {
cpu::MMIOHandler::global_handler()->InvalidateRange(
buffer.guest_address(), buffer_length);
kernel_memory()->TriggerWatches(buffer.guest_address(), buffer_length,
true);
}
// Synchronous.