I have a dream that one day compilers will agree.

This commit is contained in:
Ben Vanik 2016-01-01 19:19:18 +00:00
parent b4094e58eb
commit 207b835386
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ dword_result_t NtReadFile(dword_t file_handle, dword_t event_handle,
size_t bytes_read = 0;
result = file->Read(
buffer, buffer_length,
byte_offset_ptr ? static_cast<uint32_t>(*byte_offset_ptr) : -1u,
byte_offset_ptr ? static_cast<uint32_t>(*byte_offset_ptr) : -1,
&bytes_read, apc_context);
if (io_status_block) {
io_status_block->status = result;