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; Ccb->Entry = 0;
} }
/* Determine Buffer for result */ /* Get Buffer for result */
if (Irp->MdlAddress) Buffer = NtfsGetUserBuffer(Irp, FALSE);
{
Buffer = MmGetSystemAddressForMdl(Irp->MdlAddress);
}
else
{
Buffer = Irp->UserBuffer;
}
DPRINT("Buffer=%p tofind=%S\n", Buffer, Ccb->DirectorySearchPattern); DPRINT("Buffer=%p tofind=%S\n", Buffer, Ccb->DirectorySearchPattern);