kernelbase: Reimplement LOCALE_*AM/PM in GetLocaleInfoW/Ex using the locale.nls data.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2022-03-29 08:36:35 +02:00
parent 9ef9d0293a
commit 37278557dd
1 changed files with 4 additions and 4 deletions

View File

@ -1028,10 +1028,10 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return -1;
case LOCALE_S1159:
return -1;
return locale_return_string( locale->s1159, type, buffer, len );
case LOCALE_S2359:
return -1;
return locale_return_string( locale->s2359, type, buffer, len );
case LOCALE_SDAYNAME1:
case LOCALE_SDAYNAME2:
@ -1216,10 +1216,10 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return -1;
case LOCALE_SSHORTESTAM:
return -1;
return locale_return_string( locale->sshortestam, type, buffer, len );
case LOCALE_SSHORTESTPM:
return -1;
return locale_return_string( locale->sshortestpm, type, buffer, len );
case LOCALE_SENGLANGUAGE:
return locale_return_string( locale->senglanguage, type, buffer, len );