Author: pschweitzer
Date: Thu Dec 11 21:58:45 2014
New Revision: 65612
URL:
http://svn.reactos.org/svn/reactos?rev=65612&view=rev
Log:
[NTFS]
My dear Pierre, in FSCTL_GET_NTFS_FILE_RECORD, you have METHOD_BUFFERED (yes, read well
;-)).
So if you want it to work, you HAVE to return the size of the data you wrote to the output
buffer...
This makes FSCTL_GET_NTFS_FILE_RECORD finally working in ReactOS...
nfi.exe finally goes a bit farther, displays some files names and dies. Definitely still
needs love.
CORE-8725
Modified:
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Thu Dec 11 21:58:45 2014
@@ -650,6 +650,8 @@
ExFreePoolWithTag(FileRecord, TAG_NTFS);
+ Irp->IoStatus.Information = FIELD_OFFSET(NTFS_FILE_RECORD_OUTPUT_BUFFER,
FileRecordBuffer) + DeviceExt->NtfsInfo.BytesPerFileRecord;
+
return STATUS_SUCCESS;
}
@@ -699,6 +701,8 @@
Stack = IoGetCurrentIrpStackLocation(Irp);
+ Irp->IoStatus.Information = 0;
+
switch (Stack->MinorFunction)
{
case IRP_MN_KERNEL_CALL:
@@ -727,7 +731,6 @@
}
Irp->IoStatus.Status = Status;
- Irp->IoStatus.Information = 0;
IoCompleteRequest(Irp, IO_NO_INCREMENT);