Fix compilation problem caused by ULONG_MAX.

This commit is contained in:
Gerald Pfeifer 2005-04-20 12:51:26 +00:00 committed by Alexandre Julliard
parent 072c5e56a2
commit 185ec147b9
1 changed files with 1 additions and 1 deletions

View File

@ -1098,7 +1098,7 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
pipe_type = (dwPipeMode & PIPE_TYPE_MESSAGE) ? TRUE : FALSE;
read_mode = (dwPipeMode & PIPE_READMODE_MESSAGE) ? TRUE : FALSE;
non_block = (dwPipeMode & PIPE_NOWAIT) ? TRUE : FALSE;
if (nMaxInstances >= PIPE_UNLIMITED_INSTANCES) nMaxInstances = ULONG_MAX;
if (nMaxInstances >= PIPE_UNLIMITED_INSTANCES) nMaxInstances = ~0UL;
timeout.QuadPart = (ULONGLONG)nDefaultTimeOut * -10000;