[proxy,rdpdr] fix integer narrow

This commit is contained in:
akallabeth
2024-09-25 03:16:34 +02:00
parent f55a1e2bc3
commit 997ff57301

View File

@@ -457,7 +457,7 @@ static UINT rdpdr_process_client_name_request(pf_channel_server_context* rdpdr,
return ERROR_INVALID_DATA;
Stream_Read_UINT32(s, unicodeFlag);
rdpdr->common.computerNameUnicode = (unicodeFlag & 1);
rdpdr->common.computerNameUnicode = ((unicodeFlag & 1) != 0) ? TRUE : FALSE;
Stream_Read_UINT32(s, codePage);
WINPR_UNUSED(codePage); /* Field is ignored */