[core,credssp] fix conversion from unicode

there was a mixup in the conversion and WCHAR was treated as utf8.
This commit is contained in:
Armin Novak 2022-12-14 16:21:37 +01:00 committed by Martin Fleisz
parent 103c0a983c
commit a8d3693b27

View File

@ -653,7 +653,7 @@ const char* credssp_auth_pkg_name(rdpCredsspAuth* auth)
if (!auth->pkgNameA)
{
WINPR_ASSERT(auth->info->Name);
auth->pkgNameA = ConvertUtf8ToWCharAlloc(auth->info->Name, NULL);
auth->pkgNameA = ConvertWCharToUtf8Alloc(auth->info->Name, NULL);
}
return auth->pkgNameA;
#else