From 9b2f541051e67ffcc8ed29d9cf404347bf7ff656 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 28 Aug 2002 07:05:14 +0000 Subject: [PATCH] Set the allocation size in IoCreateFile. svn path=/trunk/; revision=3419 --- reactos/ntoskrnl/io/create.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/create.c b/reactos/ntoskrnl/io/create.c index a2f53ac7605..4c42d7d2ab1 100644 --- a/reactos/ntoskrnl/io/create.c +++ b/reactos/ntoskrnl/io/create.c @@ -1,4 +1,4 @@ -/* $Id: create.c,v 1.58 2002/05/23 09:51:11 ekohl Exp $ +/* $Id: create.c,v 1.59 2002/08/28 07:05:14 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -375,6 +375,10 @@ IoCreateFile(OUT PHANDLE FileHandle, Irp->Tail.Overlay.AuxiliaryBuffer = (PCHAR)ExtraCreateParameters; Irp->Tail.Overlay.Thread = PsGetCurrentThread(); Irp->UserEvent = &FileObject->Event; + if (AllocationSize) + { + Irp->Overlay.AllocationSize = *AllocationSize; + } /* * Get the stack location for the new