Author: pschweitzer
Date: Thu Apr 14 20:42:12 2016
New Revision: 71160
URL:
http://svn.reactos.org/svn/reactos?rev=71160&view=rev
Log:
[FREELDR]
Cherrypick r71159
Modified:
trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c
Modified: trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/lib/f…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c [iso-8859-1] Thu Apr 14 20:42:12
2016
@@ -302,8 +302,8 @@
ReadLength = (ULONG)min(DataRunLength * Volume->ClusterSize - (Offset -
CurrentOffset), Length);
if (DataRunStartLCN == -1)
- RtlZeroMemory(Buffer, ReadLength);
- if (NtfsDiskRead(Volume, DataRunStartLCN * Volume->ClusterSize + Offset -
CurrentOffset, ReadLength, Buffer))
+ RtlZeroMemory(Buffer, ReadLength);
+ if (DataRunStartLCN == -1 || NtfsDiskRead(Volume, DataRunStartLCN *
Volume->ClusterSize + Offset - CurrentOffset, ReadLength, Buffer))
{
Length -= ReadLength;
Buffer += ReadLength;