From 0bc08d80ef5de7266d08bc15ac21593c734e92ac Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Thu, 4 Jun 2015 01:06:39 -0500 Subject: [PATCH] NtCreateIoCompletion stub --- src/xenia/kernel/xboxkrnl_io.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xenia/kernel/xboxkrnl_io.cc b/src/xenia/kernel/xboxkrnl_io.cc index 95f0c3e3b..71173696e 100644 --- a/src/xenia/kernel/xboxkrnl_io.cc +++ b/src/xenia/kernel/xboxkrnl_io.cc @@ -401,6 +401,13 @@ SHIM_CALL NtWriteFile_shim(PPCContext* ppc_context, KernelState* kernel_state) { SHIM_SET_RETURN_32(result); } +dword_result_t NtCreateIoCompletion(lpvoid_t out_handle, dword_t desired_access, + lpvoid_t object_attribs, + dword_t num_concurrent_threads) { + return X_STATUS_UNSUCCESSFUL; +} +DECLARE_XBOXKRNL_EXPORT(NtCreateIoCompletion, ExportTag::kStub); + SHIM_CALL NtSetInformationFile_shim(PPCContext* ppc_context, KernelState* kernel_state) { uint32_t file_handle = SHIM_GET_ARG_32(0); @@ -441,6 +448,9 @@ SHIM_CALL NtSetInformationFile_shim(PPCContext* ppc_context, info = 8; XELOGW("NtSetInformationFile ignoring alloc/eof"); break; + case XFileCompletionInformation: + // Games appear to call NtCreateIoCompletion right before this + break; default: // Unsupported, for now. assert_always();