- Use English resources when no default locale is specified (Temporary fix).

- Added registry entry for the per user local setting.

svn path=/trunk/; revision=7830
This commit is contained in:
Filip Navara 2004-01-22 20:47:08 +00:00
parent 029c2688e6
commit 3763ee7ad1
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,8 @@ HKCU,"Control Panel",,0x00000012
HKCU,"Control Panel\Appearance",,0x00000012
HKCU,"Control Panel\Desktop","CursorBlinkRate",0x00000002,"530"
HKCU,"Control Panel\Desktop","DragFullWindows",0x00000002,"0"
HKCU,"Control Panel\International",,0x00000012
HKCU,"Control Panel\International","Locale",0x00000000,"0409"
HKCU,"Environment",,0x00000012

View file

@ -1,4 +1,4 @@
/* $Id: res.c,v 1.17 2003/12/09 18:22:29 gvg Exp $
/* $Id: res.c,v 1.18 2004/01/22 20:47:08 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT : ReactOS user mode libraries
@ -134,6 +134,9 @@ FindResourceExW (
ResourceInfo.Language = (ULONG)wLanguage;
if (ResourceInfo.Language == (ULONG) MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)) {
ResourceInfo.Language = (ULONG) GetUserDefaultLangID();
if (ResourceInfo.Language == (ULONG) MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)) {
ResourceInfo.Language = (ULONG) MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US);
}
}
Status = LdrFindResource_U (hModule,