From 23eb05714fde788cd0022e775b5411fa96871d44 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 25 May 2015 17:45:04 +0000 Subject: [PATCH] [NTFS] Call NtfsGetUserBuffer() when required, don't reimplement the wheel everytime svn path=/trunk/; revision=67913 --- reactos/drivers/filesystems/ntfs/dirctl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/reactos/drivers/filesystems/ntfs/dirctl.c b/reactos/drivers/filesystems/ntfs/dirctl.c index 9bb0403b5f5..487fa165af8 100644 --- a/reactos/drivers/filesystems/ntfs/dirctl.c +++ b/reactos/drivers/filesystems/ntfs/dirctl.c @@ -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);