Skip to content

Commit

Permalink
[PSDK][SHELLBTRFS] Get rid of FILE_INFO_BY_HANDLE_CLASS.MaximumFileIn…
Browse files Browse the repository at this point in the history
…foByHandlesClass (#6003)

Follow-up to commit 455f330 (see PR #5802).
'MaximumFileInfoByHandlesClass' was our typo.
  • Loading branch information
SergeGautherie authored and errortek committed Nov 26, 2023
1 parent 64729c4 commit 72eb310
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dll/shellext/shellbtrfs/reactos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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];
}
Expand Down
11 changes: 10 additions & 1 deletion sdk/include/psdk/winbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72eb310

Please sign in to comment.