[NTOS:EX] ExpGet/SetCurrentUserUILanguage() take pointer to const string. Add an implementation note to NtQueryDefaultUILanguage().

This commit is contained in:
Hermès Bélusca-Maïto 2022-01-21 17:09:53 +01:00
parent 0540c20167
commit 20e23bbfcd
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -21,14 +21,14 @@ LCID PsDefaultSystemLocaleId = 0x00000409;
LANGID PsInstallUILanguageId = LANGIDFROMLCID(0x00000409);
/* UI/Thread IDs: Same as system */
LANGID PsDefaultUILanguageId = 0x00000409;
LCID PsDefaultThreadLocaleId = LANGIDFROMLCID(0x00000409);
LCID PsDefaultThreadLocaleId = 0x00000409;
LANGID PsDefaultUILanguageId = LANGIDFROMLCID(0x00000409);
/* PRIVATE FUNCTIONS *********************************************************/
NTSTATUS
NTAPI
ExpGetCurrentUserUILanguage(IN PWSTR MuiName,
ExpGetCurrentUserUILanguage(IN PCWSTR MuiName,
OUT LANGID* LanguageId)
{
UCHAR ValueBuffer[256];
@ -101,7 +101,7 @@ ExpGetCurrentUserUILanguage(IN PWSTR MuiName,
NTSTATUS
NTAPI
ExpSetCurrentUserUILanguage(IN PWSTR MuiName,
ExpSetCurrentUserUILanguage(IN PCWSTR MuiName,
IN LANGID LanguageId)
{
OBJECT_ATTRIBUTES ObjectAttributes;
@ -426,6 +426,7 @@ NtQueryDefaultUILanguage(OUT LANGID* LanguageId)
else
{
/* Failed, use fallback value */
// NOTE: Windows doesn't use PsDefaultUILanguageId.
*LanguageId = PsInstallUILanguageId;
}
}