From 135d508a78dcabc2fa88c3d1ad4798d60e4f97c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Thu, 26 May 2022 08:55:02 -0400 Subject: [PATCH] * libfreerdp-channels: fix remdesk, encomsp channel event handling --- channels/encomsp/client/encomsp_main.c | 3 +++ channels/remdesk/client/remdesk_main.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/channels/encomsp/client/encomsp_main.c b/channels/encomsp/client/encomsp_main.c index d84122bf5..8caf4dddd 100644 --- a/channels/encomsp/client/encomsp_main.c +++ b/channels/encomsp/client/encomsp_main.c @@ -1171,6 +1171,9 @@ static VOID VCAPITYPE encomsp_virtual_channel_init_event_ex(LPVOID lpUserParam, switch (event) { + case CHANNEL_EVENT_INITIALIZED: + break; + case CHANNEL_EVENT_CONNECTED: if ((error = encomsp_virtual_channel_event_connected(encomsp, pData, dataLength))) WLog_ERR(TAG, diff --git a/channels/remdesk/client/remdesk_main.c b/channels/remdesk/client/remdesk_main.c index facd3af6e..a00f47bfe 100644 --- a/channels/remdesk/client/remdesk_main.c +++ b/channels/remdesk/client/remdesk_main.c @@ -819,6 +819,9 @@ static VOID VCAPITYPE remdesk_virtual_channel_open_event_ex(LPVOID lpUserParam, switch (event) { + case CHANNEL_EVENT_INITIALIZED: + break; + case CHANNEL_EVENT_DATA_RECEIVED: if (!remdesk || (remdesk->OpenHandle != openHandle)) { @@ -848,6 +851,7 @@ static VOID VCAPITYPE remdesk_virtual_channel_open_event_ex(LPVOID lpUserParam, default: WLog_ERR(TAG, "unhandled event %" PRIu32 "!", event); error = ERROR_INTERNAL_ERROR; + break; } if (error && remdesk && remdesk->rdpcontext)