mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 13:08:23 +00:00
[KERNEL32] SetThreadUILanguage(): Validate the parameter. Use LANGIDFROMLCID() macro. (#4301)
Both ReactOS and Win2k3 only support '0' for the parameter.
This commit is contained in:
parent
3e44a5d71c
commit
a94436b519
1 changed files with 12 additions and 1 deletions
|
@ -935,8 +935,19 @@ LANGID
|
||||||
WINAPI
|
WINAPI
|
||||||
SetThreadUILanguage(IN LANGID LangId)
|
SetThreadUILanguage(IN LANGID LangId)
|
||||||
{
|
{
|
||||||
|
#if (NTDDI_VERSION < NTDDI_LONGHORN)
|
||||||
|
/* We only support LangId == 0, for selecting a language
|
||||||
|
* identifier that best supports the NT Console. */
|
||||||
|
if (LangId != 0)
|
||||||
|
{
|
||||||
|
BaseSetLastNTError(STATUS_NOT_SUPPORTED);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return (LANGID)NtCurrentTeb()->CurrentLocale;
|
|
||||||
|
return LANGIDFROMLCID(NtCurrentTeb()->CurrentLocale);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue