diff --git a/src/xenia/kernel/modules/xboxkrnl/xboxkrnl_io.cc b/src/xenia/kernel/modules/xboxkrnl/xboxkrnl_io.cc index 659134f44..410993377 100644 --- a/src/xenia/kernel/modules/xboxkrnl/xboxkrnl_io.cc +++ b/src/xenia/kernel/modules/xboxkrnl/xboxkrnl_io.cc @@ -167,7 +167,8 @@ SHIM_CALL NtReadFile_shim( // TODO(benvanik): async path. if (true) { // Synchronous request. - if (byte_offset == 0xFFFFFFFFfffffffe) { + if (!byte_offset_ptr || + byte_offset == 0xFFFFFFFFfffffffe) { // FILE_USE_FILE_POINTER_POSITION byte_offset = -1; }