From 2e3287bc6a7984df5d204ea666a53405cd2242f8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 7 May 2008 13:29:18 +0200 Subject: [PATCH] ntdll: Serial with ReadIntervalTimeout set to MAXDWORD should return immediately even if nothing was read. --- dlls/ntdll/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index ce9491799c3..fd72a612486 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -433,7 +433,7 @@ static NTSTATUS get_io_timeouts( HANDLE handle, enum server_fd_type type, ULONG timeouts->total += count * st.ReadTotalTimeoutMultiplier; } else if (st.ReadIntervalTimeout == MAXDWORD) - timeouts->interval = 0; + timeouts->interval = timeouts->total = 0; } else /* write */ {