mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 04:23:02 +00:00
- Correct a comment.
svn path=/trunk/; revision=10394
This commit is contained in:
parent
0bde909135
commit
8db63af2d6
1 changed files with 16 additions and 19 deletions
|
@ -271,27 +271,24 @@ U64 NtfsReadAttribute(PNTFS_ATTR_CONTEXT Context, U64 Offset, PCHAR Buffer, U64
|
||||||
AlreadyRead += ReadLength;
|
AlreadyRead += ReadLength;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Go to next run in the list. Note that we don't do it only for
|
* Go to next run in the list.
|
||||||
* Length > 0 because of run pointer caching.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
if (*DataRun == 0)
|
||||||
if (*DataRun == 0)
|
break;
|
||||||
break;
|
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
|
||||||
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
|
if (DataRunOffset != -1)
|
||||||
if (DataRunOffset != -1)
|
{
|
||||||
{
|
/* Normal data run. */
|
||||||
/* Normal data run. */
|
DataRunStartLCN = LastLCN + DataRunOffset;
|
||||||
DataRunStartLCN = LastLCN + DataRunOffset;
|
LastLCN = DataRunStartLCN;
|
||||||
LastLCN = DataRunStartLCN;
|
}
|
||||||
}
|
else
|
||||||
else
|
{
|
||||||
{
|
/* Sparse data run. */
|
||||||
/* Sparse data run. */
|
DataRunStartLCN = -1;
|
||||||
DataRunStartLCN = -1;
|
}
|
||||||
}
|
CurrentOffset += DataRunLength * NtfsClusterSize;
|
||||||
CurrentOffset += DataRunLength * NtfsClusterSize;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Context->CacheRun = DataRun;
|
Context->CacheRun = DataRun;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue