From bc388c2ea341f1bc7107ac6d792b90a7b0c2ec0b Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sat, 8 Jul 2006 18:59:18 +0000 Subject: [PATCH] - Don't use FILE_ATTRIBUTE_NORMAL for mailslots/namedpipes. svn path=/trunk/; revision=22937 --- reactos/ntoskrnl/io/iomgr/file.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/io/iomgr/file.c b/reactos/ntoskrnl/io/iomgr/file.c index c83e842482e..49e75b7f4f6 100644 --- a/reactos/ntoskrnl/io/iomgr/file.c +++ b/reactos/ntoskrnl/io/iomgr/file.c @@ -1911,7 +1911,7 @@ NtCreateMailslotFile(OUT PHANDLE FileHandle, PAGED_CODE(); /* Check for Timeout */ - if (DefaultTimeout) + if (TimeOut) { /* check if the call came from user mode */ if (KeGetPreviousMode() != KernelMode) @@ -1920,8 +1920,7 @@ NtCreateMailslotFile(OUT PHANDLE FileHandle, _SEH_TRY { /* Probe the timeout */ - Buffer.DefaultTimeout = - ProbeForReadLargeInteger(DefaultTimeout); + Buffer.ReadTimeout = ProbeForReadLargeInteger(TimeOut); } _SEH_HANDLE { @@ -1936,7 +1935,7 @@ NtCreateMailslotFile(OUT PHANDLE FileHandle, else { /* Otherwise, capture directly */ - Buffer.DefaultTimeout = *DefaultTimeout; + Buffer.ReadTimeout = *TimeOut; } /* Set the correct setting */