From 185ec147b94ff3d1c7ff6543ace0619a8c90830b Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Wed, 20 Apr 2005 12:51:26 +0000 Subject: [PATCH] Fix compilation problem caused by ULONG_MAX. --- dlls/kernel/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel/sync.c b/dlls/kernel/sync.c index 8d3f43c1b91..148301d2396 100644 --- a/dlls/kernel/sync.c +++ b/dlls/kernel/sync.c @@ -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;