Fix event created for WSAEventSelect: The event we pass to WSAEventSelect should...
authorzihao.jiang <zihao.jiang@yahoo.com>
Tue, 30 Jun 2015 17:13:28 +0000 (01:13 +0800)
committerzihao.jiang <zihao.jiang@yahoo.com>
Tue, 30 Jun 2015 17:52:59 +0000 (01:52 +0800)
commit75407edf37cc159e96b40dae39f5726fae49e24c
tree16cd1d581bef87226353c5051174ec635f539dc2
parent20878e50fe4c3e843209142af670dcf5a4fd5125
Fix event created for WSAEventSelect: The event we pass to WSAEventSelect should be WSAEVENT instead of normal event.
From MSDN, it looks same as CreateEvent(NULL, FALSE, FALSE, NULL):
The WSACreateEvent function creates a manual-reset event object with an initial state of nonsignaled. The event object is unnamed.
However they are not really equivalent. When we use normal event, the WSAEventSelect still works but the event appears to be 'auto-reset'.
libfreerdp/core/tcp.c