diff --git a/channels/remdesk/common/remdesk_common.c b/channels/remdesk/common/remdesk_common.c index 854547798..a4600e764 100644 --- a/channels/remdesk/common/remdesk_common.c +++ b/channels/remdesk/common/remdesk_common.c @@ -23,7 +23,7 @@ #include #define TAG CHANNELS_TAG("remdesk.common") -UINT remdesk_write_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* header) +UINT remdesk_write_channel_header(wStream* s, const REMDESK_CHANNEL_HEADER* header) { WCHAR ChannelNameW[32] = { 0 }; diff --git a/channels/remdesk/common/remdesk_common.h b/channels/remdesk/common/remdesk_common.h index 76dddd0f1..98bd26b8a 100644 --- a/channels/remdesk/common/remdesk_common.h +++ b/channels/remdesk/common/remdesk_common.h @@ -25,7 +25,7 @@ #include -FREERDP_LOCAL UINT remdesk_write_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* header); +FREERDP_LOCAL UINT remdesk_write_channel_header(wStream* s, const REMDESK_CHANNEL_HEADER* header); FREERDP_LOCAL UINT remdesk_write_ctl_header(wStream* s, const REMDESK_CTL_HEADER* ctlHeader); FREERDP_LOCAL UINT remdesk_read_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* header); FREERDP_LOCAL UINT remdesk_prepare_ctl_header(REMDESK_CTL_HEADER* ctlHeader, UINT32 msgType,