summaryrefslogtreecommitdiff
path: root/src/ntfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ntfs.c')
-rw-r--r--src/ntfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ntfs.c b/src/ntfs.c
index 3e2b657..0d7210d 100644
--- a/src/ntfs.c
+++ b/src/ntfs.c
@@ -101,25 +101,25 @@ bool ntfs_dofixups(byte* cluster, uint32 size)
{
ntfs_recordheader* record = (ntfs_recordheader*)cluster;
byte numSectors;
- uint16* updSeq;
- uint16* sectorFooter;
- byte i;
+ uint16* updSeq;
+ uint16* sectorFooter;
+ byte i;
ASSERT(size % kSectorSize == 0);
- numSectors = (byte)(size / kSectorSize);
+ numSectors = (byte)(size / kSectorSize);
- /* Check the number of sectors against array */
+ /* Check the number of sectors against array */
if(record->cwUpdSeq - 1 < numSectors)
numSectors = record->cwUpdSeq - 1;
-
+
updSeq = (uint16*)(cluster + record->offUpdSeq);
for(i = 0; i < numSectors; i++)
{
- /*
+ /*
* Check last 2 bytes in each sector against
* first double byte value in update sequence
- */
+ */
sectorFooter = (uint16*)((cluster + (kSectorSize - 2)) + (i * kSectorSize));
if(*sectorFooter == updSeq[0])
*sectorFooter = updSeq[i + 1];