- Don't use FILE_ATTRIBUTE_NORMAL for mailslots/namedpipes.

svn path=/trunk/; revision=22937
This commit is contained in:
Alex Ionescu
2006-07-08 18:59:18 +00:00
parent b256a775b7
commit bc388c2ea3
+3 -4
View File
@@ -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 */