Added missing event handle.
authorArmin Novak <armin.novak@thincast.com>
Tue, 13 Sep 2016 11:42:42 +0000 (13:42 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 6 Oct 2016 11:43:12 +0000 (13:43 +0200)
libfreerdp/core/freerdp.c

index f700c9d..ba9a86e 100644 (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;