Modified GetEventHandles of listener

Now using nCount as in and out argument.
When called, set nCount to the number of available handles.
This value is checked and an error returned, if not enough
handles are available.
This commit is contained in:
Armin Novak
2015-04-21 12:09:44 +02:00
parent 23dfec9cc1
commit 6e213bc61b
3 changed files with 6 additions and 2 deletions

View File

@@ -744,7 +744,7 @@ static void test_server_mainloop(freerdp_listener* instance)
while (1)
{
count = 0;
count = 32;
if (instance->GetEventHandles(instance, handles, &count))
{