Author: pschweitzer
Date: Mon May 25 17:45:04 2015
New Revision: 67913
URL:
http://svn.reactos.org/svn/reactos?rev=67913&view=rev
Log:
[NTFS]
Call NtfsGetUserBuffer() when required, don't reimplement the wheel everytime
Modified:
trunk/reactos/drivers/filesystems/ntfs/dirctl.c
Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] Mon May 25 17:45:04 2015
@@ -304,15 +304,8 @@
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);