Alexandre Julliard : kernel32:
Store a few more locale values in the registry.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 28 07:50:09 CDT 2007
Module: wine
Branch: master
Commit: 2e55b3d6ab16de0923c8ebad607a0b4d4dfca701
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e55b3d6ab16de0923c8ebad607a0b4d4dfca701
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Aug 28 11:36:45 2007 +0200
kernel32: Store a few more locale values in the registry.
---
dlls/kernel32/locale.c | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 859f30a..1d607f1 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -641,6 +641,7 @@ void LOCALE_InitRegistry(void)
static const WCHAR lc_timeW[] = { 'L','C','_','T','I','M','E',0 };
static const WCHAR lc_measurementW[] = { 'L','C','_','M','E','A','S','U','R','E','M','E','N','T',0 };
static const WCHAR lc_telephoneW[] = { 'L','C','_','T','E','L','E','P','H','O','N','E',0 };
+ static const WCHAR lc_paperW[] = { 'L','C','_','P','A','P','E','R',0};
static const struct
{
LPCWSTR name;
@@ -659,13 +660,20 @@ void LOCALE_InitRegistry(void)
LOCALE_ICURRENCY,
LOCALE_INEGCURR,
LOCALE_ICURRDIGITS,
- LOCALE_ILZERO };
+ LOCALE_ILZERO,
+ LOCALE_SMONDECIMALSEP,
+ LOCALE_SMONGROUPING,
+ LOCALE_SMONTHOUSANDSEP };
static const LCTYPE lc_numeric_values[] = {
LOCALE_SDECIMAL,
LOCALE_STHOUSAND,
LOCALE_IDIGITS,
LOCALE_IDIGITSUBSTITUTION,
- LOCALE_SNATIVEDIGITS };
+ LOCALE_SNATIVEDIGITS,
+ LOCALE_INEGNUMBER,
+ LOCALE_SNEGATIVESIGN,
+ LOCALE_SPOSITIVESIGN,
+ LOCALE_SGROUPING };
static const LCTYPE lc_time_values[] = {
LOCALE_S1159,
LOCALE_S2359,
@@ -676,9 +684,15 @@ void LOCALE_InitRegistry(void)
LOCALE_SLONGDATE,
LOCALE_SDATE,
LOCALE_ITIMEMARKPOSN,
- LOCALE_ICALENDARTYPE };
+ LOCALE_ICALENDARTYPE,
+ LOCALE_IFIRSTDAYOFWEEK,
+ LOCALE_IFIRSTWEEKOFYEAR,
+ LOCALE_STIMEFORMAT,
+ LOCALE_SYEARMONTH,
+ LOCALE_IDATE };
static const LCTYPE lc_measurement_values[] = { LOCALE_IMEASURE };
static const LCTYPE lc_telephone_values[] = { LOCALE_ICOUNTRY };
+ static const LCTYPE lc_paper_values[] = { LOCALE_IPAPERSIZE };
UNICODE_STRING nameW;
WCHAR bufferW[80];
@@ -701,6 +715,8 @@ void LOCALE_InitRegistry(void)
sizeof(lc_measurement_values)/sizeof(lc_measurement_values[0]) );
locale_update_registry( hkey, lc_telephoneW, lcid_LC_TELEPHONE, lc_telephone_values,
sizeof(lc_telephone_values)/sizeof(lc_telephone_values[0]) );
+ locale_update_registry( hkey, lc_paperW, lcid_LC_PAPER, lc_paper_values,
+ sizeof(lc_paper_values)/sizeof(lc_paper_values[0]) );
if (locale_update_registry( hkey, lc_ctypeW, lcid_LC_CTYPE, NULL, 0 ))
{
More information about the wine-cvs
mailing list