Skip to content

Commit

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

This reverts commit e2ada69.
  • Loading branch information
errortek committed Nov 26, 2023
1 parent 72eb310 commit cff94a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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[MaximumFileInfoByHandleClass] =
FILE_INFORMATION_CLASS ConvertToFileInfo[MaximumFileInfoByHandlesClass] =
{
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 < MaximumFileInfoByHandleClass)
if (FileInformationClass < MaximumFileInfoByHandlesClass)
{
FileInfoClass = ConvertToFileInfo[FileInformationClass];
}
Expand Down
11 changes: 1 addition & 10 deletions sdk/include/psdk/winbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -1007,16 +1007,7 @@ typedef enum _FILE_INFO_BY_HANDLE_CLASS {
FileIdInfo,
FileIdExtdDirectoryInfo,
FileIdExtdDirectoryRestartInfo,
#endif
#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) || defined(__REACTOS__)
FileDispositionInfoEx,
FileRenameInfoEx,
#endif
#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) || defined(__REACTOS__)
FileCaseSensitiveInfo,
FileNormalizedNameInfo,
#endif
MaximumFileInfoByHandleClass
MaximumFileInfoByHandlesClass
} FILE_INFO_BY_HANDLE_CLASS, *PFILE_INFO_BY_HANDLE_CLASS;

typedef struct _FILE_ID_BOTH_DIR_INFO {
Expand Down

0 comments on commit cff94a4

Please sign in to comment.