Author: dchapyshev
Date: Fri Feb 13 06:04:20 2009
New Revision: 39580
URL:
http://svn.reactos.org/svn/reactos?rev=39580&view=rev
Log:
- Add LCIDToLocaleName from Wine. Used by Wine Gecko
Modified:
trunk/reactos/dll/win32/kernel32/kernel32.spec
trunk/reactos/dll/win32/kernel32/misc/lang.c
Modified: trunk/reactos/dll/win32/kernel32/kernel32.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/kernel3…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/kernel32.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/kernel32.spec [iso-8859-1] Fri Feb 13 06:04:20 2009
@@ -601,7 +601,7 @@
@ stdcall IsValidLocale(long long)
@ stdcall IsValidUILanguage(long)
@ stdcall IsWow64Process(ptr ptr)
-@ stub LCIDToLocaleName # missed in XP SP3
+@ stdcall LCIDToLocaleName(long wstr long long) # needed for wine gecko; missed in XP
SP3
@ stdcall LCMapStringA(long long str long ptr long)
@ stdcall LCMapStringW(long long wstr long ptr long)
@ stdcall LeaveCriticalSection(ptr) ntdll.RtlLeaveCriticalSection
Modified: trunk/reactos/dll/win32/kernel32/misc/lang.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/la…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/lang.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/lang.c [iso-8859-1] Fri Feb 13 06:04:20 2009
@@ -3042,3 +3042,13 @@
{
return GetLocaleInfoW( MAKELCID(wLang, SORT_DEFAULT), LOCALE_SENGLANGUAGE, szLang,
nSize );
}
+
+/***********************************************************************
+ * LCIDToLocaleName (KERNEL32.@) Wine 13.02.2009
+ */
+INT WINAPI LCIDToLocaleName( LCID lcid, LPWSTR name, INT count, DWORD flags )
+{
+ if (flags) DPRINT1( "unsupported flags %x\n", flags );
+
+ return GetLocaleInfoW( lcid, LOCALE_SNAME | LOCALE_NOUSEROVERRIDE, name, count );
+}