mirror of https://github.com/FreeRDP/FreeRDP
[core] fixed missing BYTE to WCHAR casts
This commit is contained in:
parent
1b254c17ea
commit
818267bc80
|
@ -374,9 +374,9 @@ static void license_print_product_info(const LICENSE_PRODUCT_INFO* productInfo)
|
|||
WINPR_ASSERT(productInfo->pbCompanyName);
|
||||
WINPR_ASSERT(productInfo->pbProductId);
|
||||
|
||||
CompanyName = ConvertWCharNToUtf8Alloc(productInfo->pbCompanyName,
|
||||
CompanyName = ConvertWCharNToUtf8Alloc((const WCHAR*)productInfo->pbCompanyName,
|
||||
productInfo->cbCompanyName / sizeof(WCHAR), NULL);
|
||||
ProductId = ConvertWCharNToUtf8Alloc(productInfo->pbProductId,
|
||||
ProductId = ConvertWCharNToUtf8Alloc((const WCHAR*)productInfo->pbProductId,
|
||||
productInfo->cbProductId / sizeof(WCHAR), NULL);
|
||||
WLog_INFO(TAG, "ProductInfo:");
|
||||
WLog_INFO(TAG, "\tdwVersion: 0x%08" PRIX32 "", productInfo->dwVersion);
|
||||
|
|
|
@ -379,7 +379,7 @@ static BOOL nla_client_setup_identity(rdpNla* nla)
|
|||
{
|
||||
if (sspi_SetAuthIdentityWithUnicodePassword(
|
||||
nla->identity, settings->Username, settings->Domain,
|
||||
(const UINT16*)settings->RedirectionPassword,
|
||||
(const WCHAR*)settings->RedirectionPassword,
|
||||
settings->RedirectionPasswordLength / sizeof(WCHAR) - 1) < 0)
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue