From 5ed7c108401aa5f82a62a7ca44c4c3818a9e4373 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 8 Nov 2021 11:55:30 +0100 Subject: [PATCH] Fixed RDPEI_PLUGIN source Used the wrong pointer to cast to RDPEI_PLUGIN*, corrected that. --- channels/rdpei/client/rdpei_main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/channels/rdpei/client/rdpei_main.c b/channels/rdpei/client/rdpei_main.c index 77eb8a959..ec299e340 100644 --- a/channels/rdpei/client/rdpei_main.c +++ b/channels/rdpei/client/rdpei_main.c @@ -668,7 +668,7 @@ static UINT rdpei_send_touch_event_pdu(RDPEI_CHANNEL_CALLBACK* callback, UINT status; wStream* s; UINT32 pduLength; - RDPEI_PLUGIN* rdpei = (RDPEI_PLUGIN*)callback->plugin->pInterface; + RDPEI_PLUGIN* rdpei = (RDPEI_PLUGIN*)callback->plugin; if (!rdpei || !rdpei->rdpcontext) return ERROR_INTERNAL_ERROR; if (freerdp_settings_get_bool(rdpei->rdpcontext->settings, FreeRDP_SuspendInput)) @@ -769,7 +769,7 @@ static UINT rdpei_recv_suspend_touch_pdu(RDPEI_CHANNEL_CALLBACK* callback, wStre if (!callback || !callback->plugin) return ERROR_INTERNAL_ERROR; - rdpei = (RdpeiClientContext*)callback->plugin->pInterface; + rdpei = (RdpeiClientContext*)callback->plugin; if (!rdpei) return ERROR_INTERNAL_ERROR; @@ -792,7 +792,7 @@ static UINT rdpei_recv_resume_touch_pdu(RDPEI_CHANNEL_CALLBACK* callback, wStrea UINT error = CHANNEL_RC_OK; if (!s || !callback || !callback->plugin) return ERROR_INTERNAL_ERROR; - rdpei = (RdpeiClientContext*)callback->plugin->pInterface; + rdpei = (RdpeiClientContext*)callback->plugin; if (!rdpei) return ERROR_INTERNAL_ERROR; @@ -1181,6 +1181,7 @@ static UINT rdpei_touch_process(RdpeiClientContext* context, INT32 externalId, U *contactId = contactIdlocal; return error; } + /** * Function description *