Module: wine Branch: master Commit: d39c6851d3b449cfe1a77dab4d1379a17d48861d URL: https://source.winehq.org/git/wine.git/?a=commit;h=d39c6851d3b449cfe1a77dab4...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Mar 29 20:33:04 2022 +0200
kernelbase: Reimplement LOCALE_FONTSIGNATURE/SOPENTYPELANGUAGETAG in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/kernelbase/locale.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernelbase/locale.c b/dlls/kernelbase/locale.c index 967757f91e1..8cb2120357c 100644 --- a/dlls/kernelbase/locale.c +++ b/dlls/kernelbase/locale.c @@ -1139,7 +1139,8 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ return -1;
case LOCALE_FONTSIGNATURE: - return -1; + return locale_return_data( locale_strings + locale->fontsignature + 1, + locale_strings[locale->fontsignature], type, buffer, len );
case LOCALE_SISO639LANGNAME: return locale_return_string( locale->siso639langname, type, buffer, len ); @@ -1233,7 +1234,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ return locale_return_strarray( locale->sshorttime, 0, type, buffer, len );
case LOCALE_SOPENTYPELANGUAGETAG: - return -1; + return locale_return_string( locale->sopentypelanguagetag, type, buffer, len );
case LOCALE_SSORTLOCALE: return -1;