- Fix boot.

svn path=/trunk/; revision=22907
This commit is contained in:
Alex Ionescu 2006-07-08 04:13:50 +00:00
parent c693aa7a2b
commit 1b176ca010

View file

@ -251,10 +251,12 @@ IopParseDevice(IN PVOID ParseObject,
if (RemainingName->Length) if (RemainingName->Length)
{ {
/* Setup the unicode string */ /* Setup the unicode string */
FileObject->FileName.MaximumLength = RemainingName->Length; FileObject->FileName.MaximumLength = RemainingName->Length +
sizeof(WCHAR);
FileObject->FileName.Buffer = ExAllocatePoolWithTag(PagedPool, FileObject->FileName.Buffer = ExAllocatePoolWithTag(PagedPool,
RemainingName-> FileObject->
Length, FileName.
MaximumLength,
TAG_IO_NAME); TAG_IO_NAME);
if (!FileObject->FileName.Buffer) if (!FileObject->FileName.Buffer)
{ {