diff --git a/reactos/lib/atl/cstringt.h b/reactos/lib/atl/cstringt.h index 6c5174d8e2c..1bafb6ea2d3 100644 --- a/reactos/lib/atl/cstringt.h +++ b/reactos/lib/atl/cstringt.h @@ -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(