Fixed handle copy and index.

This commit is contained in:
Armin Novak 2015-04-21 15:10:17 +02:00
parent d98e485ac0
commit 90fa0e3fc6
1 changed files with 2 additions and 2 deletions

View File

@ -269,9 +269,9 @@ int freerdp_listener_get_event_handles(freerdp_listener* instance, HANDLE* event
for (index = 0; index < listener->num_sockfds; index++)
{
events[*nCount] = listener->events[index];
(*nCount)++;
events[index] = listener->events[index];
}
*nCount = listener->num_sockfds;
return 0;
}