Re: [ros-dev] [ros-diffs] [pschweitzer] 65166: [NTFS] Simplify buffer size management in GetNtfsFileRecord(). As tests shown, Windows doesn't care about the real size of the file record and expects th

2014-11-01 Thread Thomas Faber
On 2014-11-01 11:02, pschweit...@svn.reactos.org wrote: -OutputBuffer-FileRecordLength = FileRecord-BytesInUse; -RtlCopyMemory(OutputBuffer-FileRecordBuffer, FileRecord, FileRecord-BytesInUse); +OutputBuffer-FileRecordLength = DeviceExt-NtfsInfo.BytesPerFileRecord; +

Re: [ros-dev] [ros-diffs] [pschweitzer] 65166: [NTFS] Simplify buffer size management in GetNtfsFileRecord(). As tests shown, Windows doesn't care about the real size of the file record and expects th

2014-11-01 Thread Pierre Schweitzer
You're missing line 611 where we check against size: Stack-Parameters.FileSystemControl.OutputBufferLength (FIELD_OFFSET(NTFS_FILE_RECORD_OUTPUT_BUFFER, FileRecordBuffer) + DeviceExt-NtfsInfo.BytesPerFileRecord) On 01/11/2014 11:13, Thomas Faber wrote: On 2014-11-01 11:02,

Re: [ros-dev] [ros-diffs] [pschweitzer] 65166: [NTFS] Simplify buffer size management in GetNtfsFileRecord(). As tests shown, Windows doesn't care about the real size of the file record and expects th

2014-11-01 Thread Thomas Faber
On 2014-11-01 11:13, Thomas Faber wrote: On 2014-11-01 11:02, pschweit...@svn.reactos.org wrote: -OutputBuffer-FileRecordLength = FileRecord-BytesInUse; -RtlCopyMemory(OutputBuffer-FileRecordBuffer, FileRecord, FileRecord-BytesInUse); +OutputBuffer-FileRecordLength =