libfreerdp-core: fix linux build

This commit is contained in:
Marc-André Moreau 2013-12-18 22:02:59 -05:00
parent 5e4f77b05f
commit 05947dd0b2
2 changed files with 4 additions and 4 deletions

View File

@ -29,6 +29,7 @@
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/stream.h>
#include <winpr/winsock.h>
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0

View File

@ -370,11 +370,11 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
if (status != 1)
return WAIT_TIMEOUT;
length = read(timer->fd, (void*) &expirations, sizeof(UINT64));
status = read(timer->fd, (void*) &expirations, sizeof(UINT64));
if (length != 8)
if (status != 8)
{
if (length == -1)
if (status == -1)
{
if (errno == ETIMEDOUT)
return WAIT_TIMEOUT;
@ -416,7 +416,6 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
return WAIT_FAILED;
}
FD_ZERO(&rfds);
FD_SET(fd, &rfds);
ZeroMemory(&timeout, sizeof(timeout));