[ATL]: Use _AtlGetConversionACP() instead of hadcoded CP_THREAD_ACP value.

svn path=/trunk/; revision=69698
This commit is contained in:
Hermès Bélusca-Maïto 2015-10-25 14:37:33 +00:00
parent ebdf8b1700
commit d6e05da575

View file

@ -35,7 +35,7 @@ public:
_In_reads_(nLength) LPCWSTR pszSource,
_In_ int nLength) throw()
{
return ::WideCharToMultiByte(CP_THREAD_ACP, 0, pszSource, nLength, NULL, 0, NULL, NULL);
return ::WideCharToMultiByte(_AtlGetConversionACP(), 0, pszSource, nLength, NULL, 0, NULL, NULL);
}
static void __cdecl ConvertToBaseType(