mirror of
https://github.com/reactos/reactos.git
synced 2026-06-07 16:32:28 +08: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:
@@ -935,8 +935,19 @@ LANGID
|
||||
WINAPI
|
||||
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;
|
||||
return (LANGID)NtCurrentTeb()->CurrentLocale;
|
||||
|
||||
return LANGIDFROMLCID(NtCurrentTeb()->CurrentLocale);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user