[Kernel] Added support for XFileDispositionInformation

This is set and used in 415607DD to overwrite savefile
This commit is contained in:
Gliniak
2024-08-16 20:40:53 +02:00
parent 49584ff664
commit 651fdc0344
4 changed files with 14 additions and 2 deletions

View File

@@ -253,6 +253,7 @@ dword_result_t NtSetInformationFile_entry(
// Used to set deletion flag. Which we don't support. Probably?
auto info = info_ptr.as<X_FILE_DISPOSITION_INFORMATION*>();
bool delete_on_close = info->delete_file ? true : false;
file->entry()->SetForDeletion(static_cast<bool>(info->delete_file));
out_length = 0;
XELOGW("NtSetInformationFile ignoring delete on close: {}",
delete_on_close);