From 3d980dd2949ccf416b74a9a2fc6006225d2ac468 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 13 Feb 2015 12:00:34 -0800 Subject: [PATCH] No-op FileDispositionInformation for NtSetInformationFile. --- src/xenia/kernel/xboxkrnl_io.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xenia/kernel/xboxkrnl_io.cc b/src/xenia/kernel/xboxkrnl_io.cc index fa8d30fee..23b90f431 100644 --- a/src/xenia/kernel/xboxkrnl_io.cc +++ b/src/xenia/kernel/xboxkrnl_io.cc @@ -406,6 +406,14 @@ SHIM_CALL NtSetInformationFile_shim(PPCContext* ppc_state, KernelState* state) { if (XSUCCEEDED(result)) { result = X_STATUS_SUCCESS; switch (file_info_class) { + case XFileDispositionInformation: { + // Used to set deletion flag. Which we don't support. Probably? + info = 0; + bool delete_on_close = SHIM_MEM_8(file_info_ptr); + XELOGW("NtSetInformationFile ignoring delete on close: %d", + delete_on_close); + break; + } case XFilePositionInformation: // struct FILE_POSITION_INFORMATION { // LARGE_INTEGER CurrentByteOffset;