Added missing event handle.

This commit is contained in:
Armin Novak 2016-09-13 13:42:42 +02:00
parent f2d7766db6
commit 3220b15730

View File

@ -286,10 +286,11 @@ DWORD freerdp_get_event_handles(rdpContext* context, HANDLE* events,
if (nCount == 0)
return 0;
if (events && (nCount < count + 1))
if (events && (nCount < count + 2))
{
events[nCount++] = freerdp_channels_get_event_handle(context->instance);
events[nCount++] = getChannelErrorEventHandle(context);
events[nCount++] = context->abortEvent;
}
else
return 0;