[core] fixed missing BYTE to WCHAR casts

This commit is contained in:
akallabeth 2023-01-30 14:37:41 +01:00 committed by Martin Fleisz
parent 1b254c17ea
commit 818267bc80
2 changed files with 3 additions and 3 deletions

View File

@ -374,9 +374,9 @@ static void license_print_product_info(const LICENSE_PRODUCT_INFO* productInfo)
WINPR_ASSERT(productInfo->pbCompanyName); WINPR_ASSERT(productInfo->pbCompanyName);
WINPR_ASSERT(productInfo->pbProductId); WINPR_ASSERT(productInfo->pbProductId);
CompanyName = ConvertWCharNToUtf8Alloc(productInfo->pbCompanyName, CompanyName = ConvertWCharNToUtf8Alloc((const WCHAR*)productInfo->pbCompanyName,
productInfo->cbCompanyName / sizeof(WCHAR), NULL); productInfo->cbCompanyName / sizeof(WCHAR), NULL);
ProductId = ConvertWCharNToUtf8Alloc(productInfo->pbProductId, ProductId = ConvertWCharNToUtf8Alloc((const WCHAR*)productInfo->pbProductId,
productInfo->cbProductId / sizeof(WCHAR), NULL); productInfo->cbProductId / sizeof(WCHAR), NULL);
WLog_INFO(TAG, "ProductInfo:"); WLog_INFO(TAG, "ProductInfo:");
WLog_INFO(TAG, "\tdwVersion: 0x%08" PRIX32 "", productInfo->dwVersion); WLog_INFO(TAG, "\tdwVersion: 0x%08" PRIX32 "", productInfo->dwVersion);

View File

@ -379,7 +379,7 @@ static BOOL nla_client_setup_identity(rdpNla* nla)
{ {
if (sspi_SetAuthIdentityWithUnicodePassword( if (sspi_SetAuthIdentityWithUnicodePassword(
nla->identity, settings->Username, settings->Domain, nla->identity, settings->Username, settings->Domain,
(const UINT16*)settings->RedirectionPassword, (const WCHAR*)settings->RedirectionPassword,
settings->RedirectionPasswordLength / sizeof(WCHAR) - 1) < 0) settings->RedirectionPasswordLength / sizeof(WCHAR) - 1) < 0)
return FALSE; return FALSE;
} }