No-op FileDispositionInformation for NtSetInformationFile.

This commit is contained in:
Ben Vanik 2015-02-13 12:00:34 -08:00
parent a482d7968b
commit 3d980dd294
1 changed files with 8 additions and 0 deletions

View File

@ -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;