* libfreerdp-channels: fix remdesk, encomsp channel event handling

This commit is contained in:
Marc-André Moreau 2022-05-26 08:55:02 -04:00 committed by akallabeth
parent 1ce00d9084
commit 135d508a78
2 changed files with 7 additions and 0 deletions

View File

@ -1171,6 +1171,9 @@ static VOID VCAPITYPE encomsp_virtual_channel_init_event_ex(LPVOID lpUserParam,
switch (event) switch (event)
{ {
case CHANNEL_EVENT_INITIALIZED:
break;
case CHANNEL_EVENT_CONNECTED: case CHANNEL_EVENT_CONNECTED:
if ((error = encomsp_virtual_channel_event_connected(encomsp, pData, dataLength))) if ((error = encomsp_virtual_channel_event_connected(encomsp, pData, dataLength)))
WLog_ERR(TAG, WLog_ERR(TAG,

View File

@ -819,6 +819,9 @@ static VOID VCAPITYPE remdesk_virtual_channel_open_event_ex(LPVOID lpUserParam,
switch (event) switch (event)
{ {
case CHANNEL_EVENT_INITIALIZED:
break;
case CHANNEL_EVENT_DATA_RECEIVED: case CHANNEL_EVENT_DATA_RECEIVED:
if (!remdesk || (remdesk->OpenHandle != openHandle)) if (!remdesk || (remdesk->OpenHandle != openHandle))
{ {
@ -848,6 +851,7 @@ static VOID VCAPITYPE remdesk_virtual_channel_open_event_ex(LPVOID lpUserParam,
default: default:
WLog_ERR(TAG, "unhandled event %" PRIu32 "!", event); WLog_ERR(TAG, "unhandled event %" PRIu32 "!", event);
error = ERROR_INTERNAL_ERROR; error = ERROR_INTERNAL_ERROR;
break;
} }
if (error && remdesk && remdesk->rdpcontext) if (error && remdesk && remdesk->rdpcontext)