kernel32: sLanguage is LOCALE_SABBREVLANGNAME

Jeff Zaroyko jeffzaroyko at gmail.com
Tue Aug 25 06:19:05 CDT 2009


Much simpler fix for bug 15181 suggested by Alexandre.
-------------- next part --------------
From ff80a97647382c14f5382f9e065b9f9375a39a1b Mon Sep 17 00:00:00 2001
From: Jeff Zaroyko <jeffz at jeffz.name>
Date: Tue, 25 Aug 2009 21:02:14 +1000
Subject: kernel32: sLanguage is LOCALE_SABBREVLANGNAME

---
 dlls/kernel32/locale.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index fa17689..9071ff9 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -673,7 +673,7 @@ void LOCALE_InitRegistry(void)
         { maccpW, LOCALE_IDEFAULTMACCODEPAGE }
     };
     static const LCTYPE lc_messages_values[] = {
-      LOCALE_SLANGUAGE,
+      LOCALE_SABBREVLANGNAME,
       LOCALE_SCOUNTRY,
       LOCALE_SLIST };
     static const LCTYPE lc_monetary_values[] = {
@@ -1051,7 +1051,7 @@ static const WCHAR *get_locale_value_name( DWORD lctype )
     case LOCALE_ILDATE:           return iLDateW;
     case LOCALE_ITLZERO:          return iTLZeroW;
     case LOCALE_SCOUNTRY:         return sCountryW;
-    case LOCALE_SLANGUAGE:        return sLanguageW;
+    case LOCALE_SABBREVLANGNAME:  return sLanguageW;
 
     /* The following are used in XP and later */
     case LOCALE_IDIGITSUBSTITUTION: return NumShapeW;
-- 
1.5.4.3


More information about the wine-patches mailing list