https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d27ec14822d9c9de07615…
commit d27ec14822d9c9de076156bc56e5ef3b77ae9f51
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sun Nov 19 19:42:18 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Nov 19 19:42:18 2023 +0100
[PSDK][SHELLBTRFS] Get rid of FILE_INFO_BY_HANDLE_CLASS.MaximumFileInfoByHandlesClass
(#6003)
Follow-up to commit 455f330 (see PR #5802).
'MaximumFileInfoByHandlesClass' was our typo.
---
dll/shellext/shellbtrfs/reactos.cpp | 4 ++--
sdk/include/psdk/winbase.h | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
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 fa634127695..1a7be3db656 100644
--- a/sdk/include/psdk/winbase.h
+++ b/sdk/include/psdk/winbase.h
@@ -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