mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +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);
|
ExFreePoolWithTag(FileRecord, TAG_NTFS);
|
||||||
|
|
||||||
|
Irp->IoStatus.Information = FIELD_OFFSET(NTFS_FILE_RECORD_OUTPUT_BUFFER, FileRecordBuffer) + DeviceExt->NtfsInfo.BytesPerFileRecord;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -699,6 +701,8 @@ NtfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
Stack = IoGetCurrentIrpStackLocation(Irp);
|
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
|
|
||||||
|
Irp->IoStatus.Information = 0;
|
||||||
|
|
||||||
switch (Stack->MinorFunction)
|
switch (Stack->MinorFunction)
|
||||||
{
|
{
|
||||||
case IRP_MN_KERNEL_CALL:
|
case IRP_MN_KERNEL_CALL:
|
||||||
|
@ -727,7 +731,6 @@ NtfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
Irp->IoStatus.Status = Status;
|
Irp->IoStatus.Status = Status;
|
||||||
Irp->IoStatus.Information = 0;
|
|
||||||
|
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue