kernel32: For LOCALE_NOUSEROVERRIDE, check locale against the appropriate default lcid.

This commit is contained in:
Alexandre Julliard 2006-12-07 12:34:25 +01:00
parent 82218fcf20
commit 9967d82146
1 changed files with 2 additions and 1 deletions

View File

@ -1194,7 +1194,8 @@ INT WINAPI GetLocaleInfoW( LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len )
/* first check for overrides in the registry */
if (!(lcflags & LOCALE_NOUSEROVERRIDE) && lcid == GetUserDefaultLCID())
if (!(lcflags & LOCALE_NOUSEROVERRIDE) &&
lcid == convert_default_lcid( LOCALE_USER_DEFAULT, lctype ))
{
const WCHAR *value = get_locale_value_name(lctype);