Module: wine Branch: master Commit: 9967d82146ee3052a01c8d285fc33146d7958861 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9967d82146ee3052a01c8d285f...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Dec 7 12:34:25 2006 +0100
kernel32: For LOCALE_NOUSEROVERRIDE, check locale against the appropriate default lcid.
---
dlls/kernel32/locale.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index 042ea7b..8792623 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -1194,7 +1194,8 @@ INT WINAPI GetLocaleInfoW( LCID lcid, LC
/* 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);