From e8004d51843b2f0cff54faa6b2e740db4493decc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Thu, 3 Nov 2016 10:12:48 -0400 Subject: [PATCH] drdynvc: ignore some messages sent for invalid channel ids with MMR and Windows Server 2012 R2, fix issue #3422 --- channels/drdynvc/client/drdynvc_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/channels/drdynvc/client/drdynvc_main.c b/channels/drdynvc/client/drdynvc_main.c index 2eeb574a2..b2971787f 100644 --- a/channels/drdynvc/client/drdynvc_main.c +++ b/channels/drdynvc/client/drdynvc_main.c @@ -611,8 +611,12 @@ static UINT dvcman_receive_channel_data_first(IWTSVirtualChannelManager* if (!channel) { + /** + * Windows Server 2012 R2 can send some messages over Microsoft::Windows::RDS::Geometry::v08.01 + * even if the dynamic virtual channel wasn't registered on our side. Ignoring it works. + */ WLog_ERR(TAG, "ChannelId %d not found!", ChannelId); - return ERROR_INTERNAL_ERROR; + return CHANNEL_RC_OK; } if (channel->dvc_data)