https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0540c2016750cf2e9097e…
commit 0540c2016750cf2e9097ef076bab4b1a1a1e2c43
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Jan 21 16:45:26 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Feb 8 15:56:34 2022 +0100
[NTOS:EX][SDK:REACTOS] Fix capitalization of "LangId" in the ProbeFor***
functions.
---
ntoskrnl/ex/locale.c | 6 +++---
sdk/include/reactos/probe.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ntoskrnl/ex/locale.c b/ntoskrnl/ex/locale.c
index 86894096382..9e0f57aa458 100644
--- a/ntoskrnl/ex/locale.c
+++ b/ntoskrnl/ex/locale.c
@@ -172,7 +172,7 @@ NtQueryDefaultLocale(IN BOOLEAN UserProfile,
if (KeGetPreviousMode() != KernelMode)
{
/* Probe the language ID */
- ProbeForWriteLangid(DefaultLocaleId);
+ ProbeForWriteLangId(DefaultLocaleId);
}
/* Check if we have a user profile */
@@ -377,7 +377,7 @@ NtQueryInstallUILanguage(OUT LANGID* LanguageId)
if (KeGetPreviousMode() != KernelMode)
{
/* Probe the Language ID */
- ProbeForWriteLangid(LanguageId);
+ ProbeForWriteLangId(LanguageId);
}
/* Return it */
@@ -415,7 +415,7 @@ NtQueryDefaultUILanguage(OUT LANGID* LanguageId)
if (KeGetPreviousMode() != KernelMode)
{
/* Probe the Language ID */
- ProbeForWriteLangid(LanguageId);
+ ProbeForWriteLangId(LanguageId);
}
if (NT_SUCCESS(Status))
diff --git a/sdk/include/reactos/probe.h b/sdk/include/reactos/probe.h
index 16ee4bd6e38..6c758f6ba29 100644
--- a/sdk/include/reactos/probe.h
+++ b/sdk/include/reactos/probe.h
@@ -41,7 +41,7 @@ static const LARGE_STRING __emptyLargeString = {0, 0, 0, NULL};
#define ProbeForWriteLonglong(Ptr) ProbeForWriteGenericType(Ptr, LONGLONG)
#define ProbeForWritePointer(Ptr) ProbeForWriteGenericType(Ptr, PVOID)
#define ProbeForWriteHandle(Ptr) ProbeForWriteGenericType(Ptr, HANDLE)
-#define ProbeForWriteLangid(Ptr) ProbeForWriteGenericType(Ptr, LANGID)
+#define ProbeForWriteLangId(Ptr) ProbeForWriteGenericType(Ptr, LANGID)
#define ProbeForWriteSize_t(Ptr) ProbeForWriteGenericType(Ptr, SIZE_T)
#define ProbeForWriteLargeInteger(Ptr)
ProbeForWriteGenericType(&((PLARGE_INTEGER)Ptr)->QuadPart, LONGLONG)
#define ProbeForWriteUlargeInteger(Ptr)
ProbeForWriteGenericType(&((PULARGE_INTEGER)Ptr)->QuadPart, ULONGLONG)
@@ -70,7 +70,7 @@ static const LARGE_STRING __emptyLargeString = {0, 0, 0, NULL};
#define ProbeForReadLonglong(Ptr) ProbeForReadGenericType(Ptr, LONGLONG, 0)
#define ProbeForReadPointer(Ptr) ProbeForReadGenericType(Ptr, PVOID, NULL)
#define ProbeForReadHandle(Ptr) ProbeForReadGenericType(Ptr, HANDLE, NULL)
-#define ProbeForReadLangid(Ptr) ProbeForReadGenericType(Ptr, LANGID, 0)
+#define ProbeForReadLangId(Ptr) ProbeForReadGenericType(Ptr, LANGID, 0)
#define ProbeForReadSize_t(Ptr) ProbeForReadGenericType(Ptr, SIZE_T, 0)
#define ProbeForReadLargeInteger(Ptr) ProbeForReadGenericType((const LARGE_INTEGER
*)(Ptr), LARGE_INTEGER, __emptyLargeInteger)
#define ProbeForReadUlargeInteger(Ptr) ProbeForReadGenericType((const ULARGE_INTEGER
*)(Ptr), ULARGE_INTEGER, __emptyULargeInteger)