Module: wine Branch: master Commit: 712e4757c6d877bad2902f426195dd3c89ffe23b URL: https://source.winehq.org/git/wine.git/?a=commit;h=712e4757c6d877bad2902f426... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Mar 29 08:37:29 2022 +0200 kernelbase: Reimplement misc format values in GetLocaleInfoW/Ex using the locale.nls data. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernelbase/locale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/kernelbase/locale.c b/dlls/kernelbase/locale.c index 3095234bd9b..967757f91e1 100644 --- a/dlls/kernelbase/locale.c +++ b/dlls/kernelbase/locale.c @@ -978,7 +978,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ return -1; case LOCALE_IMEASURE: - return -1; + return locale_return_number( locale->imeasure, type, buffer, len ); case LOCALE_SDECIMAL: return -1; @@ -1203,7 +1203,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ return locale_return_string( locale->senglanguage, type, buffer, len ); case LOCALE_IREADINGLAYOUT: - return -1; + return locale_return_number( locale->ireadinglayout, type, buffer, len ); case LOCALE_INEUTRAL: return -1; @@ -1279,7 +1279,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ return locale_return_number( locale_strings[locale->scalendartype + 1], type, buffer, len ); case LOCALE_IPAPERSIZE: - return -1; + return locale_return_number( locale->ipapersize, type, buffer, len ); case LOCALE_IOPTIONALCALENDAR: return locale_return_number( locale_strings[locale->scalendartype + 2], type, buffer, len );