[REACTOS] Usage improvements for some RtlFindMessage invocations (#6023)

Use `RT_MESSAGETABLE` and `MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)`
instead of hardcoding their values.
This commit is contained in:
Hermès Bélusca-Maïto 2023-11-20 23:03:29 +01:00
parent 2f805d7a02
commit 111c8cc62a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
6 changed files with 41 additions and 28 deletions

View file

@ -519,7 +519,7 @@ UserpFormatMessages(
FormatA.Buffer = NULL;
Status = RtlFindMessage(GetModuleHandleW(L"ntdll"),
(ULONG_PTR)RT_MESSAGETABLE,
LANG_NEUTRAL,
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
Message->Status,
&MessageResource);
if (NT_SUCCESS(Status))
@ -660,7 +660,7 @@ UserpFormatMessages(
/* Retrieve the description of the exception code */
Status = RtlFindMessage(GetModuleHandleW(L"ntdll"),
(ULONG_PTR)RT_MESSAGETABLE,
LANG_NEUTRAL,
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
ExceptionCode,
&MessageResource);
if (NT_SUCCESS(Status))