diff --git a/dll/shellext/shellbtrfs/reactos.cpp b/dll/shellext/shellbtrfs/reactos.cpp index e44e6125cdc..f6f81bb113e 100644 --- a/dll/shellext/shellbtrfs/reactos.cpp +++ b/dll/shellext/shellbtrfs/reactos.cpp @@ -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]; } diff --git a/sdk/include/psdk/winbase.h b/sdk/include/psdk/winbase.h index 397ad4d92cc..1d3f68ae49b 100644 --- a/sdk/include/psdk/winbase.h +++ b/sdk/include/psdk/winbase.h @@ -1007,7 +1007,16 @@ typedef enum _FILE_INFO_BY_HANDLE_CLASS { FileIdInfo, FileIdExtdDirectoryInfo, FileIdExtdDirectoryRestartInfo, - MaximumFileInfoByHandlesClass +#endif +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) || defined(__REACTOS__) + FileDispositionInfoEx, + FileRenameInfoEx, +#endif +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) || defined(__REACTOS__) + FileCaseSensitiveInfo, + FileNormalizedNameInfo, +#endif + MaximumFileInfoByHandleClass } FILE_INFO_BY_HANDLE_CLASS, *PFILE_INFO_BY_HANDLE_CLASS; typedef struct _FILE_ID_BOTH_DIR_INFO {