correct implementation of VerLanguageNameA/W
Modified: trunk/reactos/lib/kernel32/misc/lang.c
Modified: trunk/reactos/lib/kernel32/misc/stubs.c
_____
Modified: trunk/reactos/lib/kernel32/misc/lang.c
--- trunk/reactos/lib/kernel32/misc/lang.c 2005-12-12 00:23:07 UTC
(rev 20096)
+++ trunk/reactos/lib/kernel32/misc/lang.c 2005-12-12 00:36:31 UTC
(rev 20097)
@@ -1474,3 +1474,34 @@
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
+
+
+/*
+ * @implemented
+ */
+DWORD
+STDCALL
+VerLanguageNameA (
+ DWORD wLang,
+ LPSTR szLang,
+ DWORD nSize
+ )
+{
+ return GetLocaleInfoA( MAKELCID(wLang, SORT_DEFAULT),
LOCALE_SENGLANGUAGE, szLang, nSize );
+}
+
+
+/*
+ * @implemented
+ */
+DWORD
+STDCALL
+VerLanguageNameW (
+ DWORD wLang,
+ LPWSTR szLang,
+ DWORD nSize
+ )
+{
+ return GetLocaleInfoW( MAKELCID(wLang, SORT_DEFAULT),
LOCALE_SENGLANGUAGE, szLang, nSize );
+}
+
_____
Modified: trunk/reactos/lib/kernel32/misc/stubs.c
--- trunk/reactos/lib/kernel32/misc/stubs.c 2005-12-12 00:23:07 UTC
(rev 20096)
+++ trunk/reactos/lib/kernel32/misc/stubs.c 2005-12-12 00:36:31 UTC
(rev 20097)
@@ -342,48 +342,11 @@
return 0;
}
-
/*
* @unimplemented
*/
DWORD
STDCALL
-VerLanguageNameA (
- DWORD wLang,
- LPSTR szLang,
- DWORD nSize
- )
-{
- STUB;
- szLang = "Language Neutral\0";
- nSize = sizeof(szLang) * sizeof(CHAR);
- return sizeof(szLang) - 1;
-}
-
-
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-VerLanguageNameW (
- DWORD wLang,
- LPWSTR szLang,
- DWORD nSize
- )
-{
- STUB;
- szLang = L"Language Neutral\0";
- nSize = sizeof(szLang) * sizeof(WCHAR);
- return sizeof(szLang) - 1;
-}
-
-
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
VirtualBufferExceptionHandler (
DWORD Unknown0,
DWORD Unknown1,
Show replies by date