mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:EX] ExpGet/SetCurrentUserUILanguage() take pointer to const string. Add an implementation note to NtQueryDefaultUILanguage().
This commit is contained in:
parent
0540c20167
commit
20e23bbfcd
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue