[Kernel] Added dummy XFileBasicInformation for NtSetInformationFile

This will prevent assertion spam in some games
Mostly games uses it for cache files after renaming to enable writing to file
This commit is contained in:
Gliniak
2024-08-12 19:20:59 +02:00
parent feb88ee6b1
commit 504e832b49
2 changed files with 15 additions and 0 deletions

View File

@@ -205,6 +205,11 @@ dword_result_t NtSetInformationFile_entry(
uint32_t out_length;
switch (info_class) {
case XFileBasicInformation: {
auto info = info_ptr.as<X_FILE_BASIC_INFORMATION*>();
out_length = sizeof(*info);
break;
}
case XFileRenameInformation: {
auto info = info_ptr.as<X_FILE_RENAME_INFORMATION*>();
// Compute path, possibly attrs relative.