mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:03:14 +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);
|
LANGID PsInstallUILanguageId = LANGIDFROMLCID(0x00000409);
|
||||||
|
|
||||||
/* UI/Thread IDs: Same as system */
|
/* UI/Thread IDs: Same as system */
|
||||||
LANGID PsDefaultUILanguageId = 0x00000409;
|
LCID PsDefaultThreadLocaleId = 0x00000409;
|
||||||
LCID PsDefaultThreadLocaleId = LANGIDFROMLCID(0x00000409);
|
LANGID PsDefaultUILanguageId = LANGIDFROMLCID(0x00000409);
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS *********************************************************/
|
/* PRIVATE FUNCTIONS *********************************************************/
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
ExpGetCurrentUserUILanguage(IN PWSTR MuiName,
|
ExpGetCurrentUserUILanguage(IN PCWSTR MuiName,
|
||||||
OUT LANGID* LanguageId)
|
OUT LANGID* LanguageId)
|
||||||
{
|
{
|
||||||
UCHAR ValueBuffer[256];
|
UCHAR ValueBuffer[256];
|
||||||
|
@ -101,7 +101,7 @@ ExpGetCurrentUserUILanguage(IN PWSTR MuiName,
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
ExpSetCurrentUserUILanguage(IN PWSTR MuiName,
|
ExpSetCurrentUserUILanguage(IN PCWSTR MuiName,
|
||||||
IN LANGID LanguageId)
|
IN LANGID LanguageId)
|
||||||
{
|
{
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
@ -426,6 +426,7 @@ NtQueryDefaultUILanguage(OUT LANGID* LanguageId)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Failed, use fallback value */
|
/* Failed, use fallback value */
|
||||||
|
// NOTE: Windows doesn't use PsDefaultUILanguageId.
|
||||||
*LanguageId = PsInstallUILanguageId;
|
*LanguageId = PsInstallUILanguageId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue