mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 06:57:08 +00:00
[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 svn path=/trunk/; revision=65612
This commit is contained in:
parent
4b301b04e1
commit
00abdbc36f
|
@ -650,6 +650,8 @@ GetNtfsFileRecord(PDEVICE_EXTENSION DeviceExt,
|
|||
|
||||
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 @@ NtfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
switch (Stack->MinorFunction)
|
||||
{
|
||||
case IRP_MN_KERNEL_CALL:
|
||||
|
@ -727,7 +731,6 @@ NtfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue