mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[NTOS:EX] ExpGet/SetCurrentUserUILanguage() take pointer to const string. Add an implementation note to NtQueryDefaultUILanguage().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user