Fixed RDPEI_PLUGIN source

Used the wrong pointer to cast to RDPEI_PLUGIN*, corrected that.
This commit is contained in:
akallabeth 2021-11-08 11:55:30 +01:00 committed by akallabeth
parent 755f2ce218
commit 5ed7c10840

View File

@ -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
*