[client,common] Fix minor code errors

`cctx->contacts` -> `cctx->pens`
This commit is contained in:
Hodol Han 2023-08-03 21:41:03 +09:00 committed by akallabeth
parent 5d61ab1eac
commit d962f1e4d0

View File

@ -1871,7 +1871,7 @@ static FreeRDP_PenDevice* freerdp_client_get_pen(rdpClientContext* cctx, INT32 d
{
WINPR_ASSERT(cctx);
for (size_t i = 0; i < ARRAYSIZE(cctx->contacts); i++)
for (size_t i = 0; i < ARRAYSIZE(cctx->pens); i++)
{
FreeRDP_PenDevice* pen = &cctx->pens[i];
if (deviceid == pen->deviceid)
@ -2056,7 +2056,7 @@ BOOL freerdp_client_pen_cancel_all(rdpClientContext* cctx)
if (!rdpei)
return FALSE;
for (size_t i = 0; i < ARRAYSIZE(cctx->contacts); i++)
for (size_t i = 0; i < ARRAYSIZE(cctx->pens); i++)
{
FreeRDP_PenDevice* pen = &cctx->pens[i];
if (pen->hovering)