Call NtfsGetUserBuffer() when required, don't reimplement the wheel everytime

svn path=/trunk/; revision=67913
This commit is contained in:
Pierre Schweitzer 2015-05-25 17:45:04 +00:00
parent 3deb2b256e
commit 23eb05714f

View file

@ -304,15 +304,8 @@ NtfsQueryDirectory(PNTFS_IRP_CONTEXT IrpContext)
Ccb->Entry = 0;
}
/* Determine Buffer for result */
if (Irp->MdlAddress)
{
Buffer = MmGetSystemAddressForMdl(Irp->MdlAddress);
}
else
{
Buffer = Irp->UserBuffer;
}
/* Get Buffer for result */
Buffer = NtfsGetUserBuffer(Irp, FALSE);
DPRINT("Buffer=%p tofind=%S\n", Buffer, Ccb->DirectorySearchPattern);