[PSDK][SHELLBTRFS] Get rid of FILE_INFO_BY_HANDLE_CLASS.MaximumFileInfoByHandlesClass (#6003)

Follow-up to commit 455f330 (see PR #5802).
'MaximumFileInfoByHandlesClass' was our typo.
This commit is contained in:
Serge Gautherie 2023-11-19 19:42:18 +01:00 committed by GitHub
parent 5ee1dc6113
commit d27ec14822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -153,7 +153,7 @@ NTSTATUS WINAPI RtlUTF8ToUnicodeN(PWSTR uni_dest, ULONG uni_bytes_max,
}
/* Quick and dirty table for conversion */
FILE_INFORMATION_CLASS ConvertToFileInfo[MaximumFileInfoByHandlesClass] =
FILE_INFORMATION_CLASS ConvertToFileInfo[MaximumFileInfoByHandleClass] =
{
FileBasicInformation, FileStandardInformation, FileNameInformation, FileRenameInformation,
FileDispositionInformation, FileAllocationInformation, FileEndOfFileInformation, FileStreamInformation,
@ -186,7 +186,7 @@ SetFileInformationByHandle(HANDLE hFile,
FileInfoClass = (FILE_INFORMATION_CLASS)-1;
/* Attempt to convert the class */
if (FileInformationClass < MaximumFileInfoByHandlesClass)
if (FileInformationClass < MaximumFileInfoByHandleClass)
{
FileInfoClass = ConvertToFileInfo[FileInformationClass];
}

View file

@ -1018,8 +1018,7 @@ typedef enum _FILE_INFO_BY_HANDLE_CLASS {
FileCaseSensitiveInfo,
FileNormalizedNameInfo,
#endif
MaximumFileInfoByHandleClass,
MaximumFileInfoByHandlesClass = MaximumFileInfoByHandleClass // Old name
MaximumFileInfoByHandleClass
} FILE_INFO_BY_HANDLE_CLASS, *PFILE_INFO_BY_HANDLE_CLASS;
#endif