libfreerdp-core: fix tcp_new on Windows
This commit is contained in:
parent
ae368549ad
commit
b24c95ce59
@ -513,9 +513,11 @@ rdpTcp* tcp_new(rdpSettings* settings)
|
||||
tcp->sockfd = -1;
|
||||
tcp->settings = settings;
|
||||
|
||||
#ifndef _WIN32
|
||||
tcp->event = CreateFileDescriptorEvent(NULL, FALSE, FALSE, tcp->sockfd);
|
||||
if (!tcp->event || tcp->event == INVALID_HANDLE_VALUE)
|
||||
goto out_ringbuffer;
|
||||
#endif
|
||||
|
||||
return tcp;
|
||||
out_ringbuffer:
|
||||
|
Loading…
Reference in New Issue
Block a user