mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[NTFS]
Call NtfsGetUserBuffer() when required, don't reimplement the wheel everytime svn path=/trunk/; revision=67913
This commit is contained in:
parent
3deb2b256e
commit
23eb05714f
1 changed files with 2 additions and 9 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue