correct implementation of VerLanguageNameA/W

svn path=/trunk/; revision=20097
This commit is contained in:
Christoph von Wittich
2005-12-12 00:36:31 +00:00
parent 507a9d518e
commit 84560b15bb
2 changed files with 31 additions and 37 deletions
+31
View File
@@ -1474,3 +1474,34 @@ SetUserGeoID(
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 );
}
-37
View File
@@ -342,43 +342,6 @@ VDMOperationStarted (
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
*/