Author: ion
Date: Sat Jul 8 22:59:18 2006
New Revision: 22937
URL:
http://svn.reactos.org/svn/reactos?rev=22937&view=rev
Log:
- Don't use FILE_ATTRIBUTE_NORMAL for mailslots/namedpipes.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/file.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/file.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/file.c Sat Jul 8 22:59:18 2006
@@ -1911,7 +1911,7 @@
PAGED_CODE();
/* Check for Timeout */
- if (DefaultTimeout)
+ if (TimeOut)
{
/* check if the call came from user mode */
if (KeGetPreviousMode() != KernelMode)
@@ -1920,8 +1920,7 @@
_SEH_TRY
{
/* Probe the timeout */
- Buffer.DefaultTimeout =
- ProbeForReadLargeInteger(DefaultTimeout);
+ Buffer.ReadTimeout = ProbeForReadLargeInteger(TimeOut);
}
_SEH_HANDLE
{
@@ -1936,7 +1935,7 @@
else
{
/* Otherwise, capture directly */
- Buffer.DefaultTimeout = *DefaultTimeout;
+ Buffer.ReadTimeout = *TimeOut;
}
/* Set the correct setting */