mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +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;
|
||||
|
||||
/*
|
||||
* Go to next run in the list. Note that we don't do it only for
|
||||
* Length > 0 because of run pointer caching.
|
||||
* Go to next run in the list.
|
||||
*/
|
||||
|
||||
{
|
||||
if (*DataRun == 0)
|
||||
break;
|
||||
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
|
||||
if (DataRunOffset != -1)
|
||||
{
|
||||
/* Normal data run. */
|
||||
DataRunStartLCN = LastLCN + DataRunOffset;
|
||||
LastLCN = DataRunStartLCN;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Sparse data run. */
|
||||
DataRunStartLCN = -1;
|
||||
}
|
||||
CurrentOffset += DataRunLength * NtfsClusterSize;
|
||||
}
|
||||
if (*DataRun == 0)
|
||||
break;
|
||||
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
|
||||
if (DataRunOffset != -1)
|
||||
{
|
||||
/* Normal data run. */
|
||||
DataRunStartLCN = LastLCN + DataRunOffset;
|
||||
LastLCN = DataRunStartLCN;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Sparse data run. */
|
||||
DataRunStartLCN = -1;
|
||||
}
|
||||
CurrentOffset += DataRunLength * NtfsClusterSize;
|
||||
}
|
||||
|
||||
Context->CacheRun = DataRun;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue