[Wine-devel] ntdll: Stop reading before receiving maximum number of bytes if ReadIntervalTimeout is not 0 (eterbug #2233)

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Вт Авг 12 18:02:10 MSD 2008


----------- следующая часть -----------
From 467959a9ab6a47c570a641930cf94b52c422f70f Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 12 Aug 2008 17:48:37 +0400
Subject: [PATCH] ntdll: Stop reading before receiving maximum number of bytes if ReadIntervalTimeout is not 0 (eterbug #2233)

---
 dlls/ntdll/file.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 88ea869..c9bcdb7 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -508,9 +508,7 @@ static NTSTATUS get_io_avail_mode( HANDLE handle, enum server_fd_type type, BOOL
             status = NtDeviceIoControlFile( handle, NULL, NULL, NULL, &io,
                                             IOCTL_SERIAL_GET_TIMEOUTS, NULL, 0, &st, sizeof(st) );
             if (status) break;
-            *avail_mode = (!st.ReadTotalTimeoutMultiplier &&
-                           !st.ReadTotalTimeoutConstant &&
-                           st.ReadIntervalTimeout == MAXDWORD);
+            *avail_mode = (st.ReadIntervalTimeout) ? TRUE : FALSE;
         }
         break;
     case FD_TYPE_MAILSLOT:
-- 
1.5.4.5.GIT



Подробная информация о списке рассылки Wine-devel