Alexandre Julliard : kernelbase: Reimplement LOCALE_*INFINITY/NAN in GetLocaleInfoW/Ex using the locale.nls data.
Alexandre Julliard
julliard at winehq.org
Tue Mar 29 15:09:52 CDT 2022
Module: wine
Branch: master
Commit: 17928e6a0146e9024339e04414ab813a933a10a3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17928e6a0146e9024339e04414ab813a933a10a3
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Mar 29 08:36:20 2022 +0200
kernelbase: Reimplement LOCALE_*INFINITY/NAN in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard at 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 4b205aed9af..3eb598be505 100644
--- a/dlls/kernelbase/locale.c
+++ b/dlls/kernelbase/locale.c
@@ -1151,13 +1151,13 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return locale_return_string( locale->siso3166ctryname2, type, buffer, len );
case LOCALE_SNAN:
- return -1;
+ return locale_return_string( locale->snan, type, buffer, len );
case LOCALE_SPOSINFINITY:
- return -1;
+ return locale_return_string( locale->sposinfinity, type, buffer, len );
case LOCALE_SNEGINFINITY:
- return -1;
+ return locale_return_string( locale->sneginfinity, type, buffer, len );
case LOCALE_SSCRIPTS:
return -1;
More information about the wine-cvs
mailing list