Author: ion
Date: Sat Jul 8 08:13:50 2006
New Revision: 22907
URL:
http://svn.reactos.org/svn/reactos?rev=22907&view=rev
Log:
- Fix boot.
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 08:13:50 2006
@@ -251,10 +251,12 @@
if (RemainingName->Length)
{
/* Setup the unicode string */
- FileObject->FileName.MaximumLength = RemainingName->Length;
+ FileObject->FileName.MaximumLength = RemainingName->Length +
+ sizeof(WCHAR);
FileObject->FileName.Buffer = ExAllocatePoolWithTag(PagedPool,
- RemainingName->
- Length,
+ FileObject->
+ FileName.
+ MaximumLength,
TAG_IO_NAME);
if (!FileObject->FileName.Buffer)
{