mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
NtSetDefaultLocale must only store the lanuage id (lower half) of the given system locale id.
svn path=/trunk/; revision=11666
This commit is contained in:
parent
0fafbcbcf4
commit
f838190b50
1 changed files with 13 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: locale.c,v 1.12 2004/10/24 20:37:27 weiden Exp $
|
||||
/* $Id: locale.c,v 1.13 2004/11/15 14:38:37 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -292,9 +292,18 @@ NtSetDefaultLocale(IN BOOLEAN UserProfile,
|
|||
return(Status);
|
||||
}
|
||||
|
||||
ValueLength = swprintf(ValueBuffer,
|
||||
L"%08lx",
|
||||
(ULONG)DefaultLocaleId);
|
||||
if (UserProfile)
|
||||
{
|
||||
ValueLength = swprintf(ValueBuffer,
|
||||
L"%08lx",
|
||||
(ULONG)DefaultLocaleId);
|
||||
}
|
||||
else
|
||||
{
|
||||
ValueLength = swprintf(ValueBuffer,
|
||||
L"%04lx",
|
||||
(ULONG)DefaultLocaleId & 0xFFFF);
|
||||
}
|
||||
ValueLength = (ValueLength + 1) * sizeof(WCHAR);
|
||||
|
||||
Status = NtSetValueKey(KeyHandle,
|
||||
|
|
Loading…
Reference in a new issue