From 997ff57301f4e1fcabf7ab80e785860ea8ee08f2 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 25 Sep 2024 03:16:34 +0200 Subject: [PATCH] [proxy,rdpdr] fix integer narrow --- server/proxy/channels/pf_channel_rdpdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/proxy/channels/pf_channel_rdpdr.c b/server/proxy/channels/pf_channel_rdpdr.c index 2ab15fba9..18f5fdfb0 100644 --- a/server/proxy/channels/pf_channel_rdpdr.c +++ b/server/proxy/channels/pf_channel_rdpdr.c @@ -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 */