mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[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:
parent
2f805d7a02
commit
111c8cc62a
6 changed files with 41 additions and 28 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue