winpr/pipe: fix variable type - unsigned to signed

fcntl returns int. Comparison to 0 < always returned false.
This commit is contained in:
Bernhard Miklautz 2014-04-16 10:05:53 +02:00
parent fae0c4a6e5
commit adff58f48d

View File

@ -308,7 +308,7 @@ BOOL WaitNamedPipeW(LPCWSTR lpNamedPipeName, DWORD nTimeOut)
BOOL SetNamedPipeHandleState(HANDLE hNamedPipe, LPDWORD lpMode, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout)
{
int fd;
unsigned long flags;
int flags;
WINPR_NAMED_PIPE* pNamedPipe;
pNamedPipe = (WINPR_NAMED_PIPE*) hNamedPipe;