Commit 185ec147 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Fix compilation problem caused by ULONG_MAX.

parent 072c5e56
...@@ -1098,7 +1098,7 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode, ...@@ -1098,7 +1098,7 @@ HANDLE WINAPI CreateNamedPipeW( LPCWSTR name, DWORD dwOpenMode,
pipe_type = (dwPipeMode & PIPE_TYPE_MESSAGE) ? TRUE : FALSE; pipe_type = (dwPipeMode & PIPE_TYPE_MESSAGE) ? TRUE : FALSE;
read_mode = (dwPipeMode & PIPE_READMODE_MESSAGE) ? TRUE : FALSE; read_mode = (dwPipeMode & PIPE_READMODE_MESSAGE) ? TRUE : FALSE;
non_block = (dwPipeMode & PIPE_NOWAIT) ? 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; timeout.QuadPart = (ULONGLONG)nDefaultTimeOut * -10000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment