Author: tthompson
Date: Sun Jul 17 14:04:01 2016
New Revision: 71957
URL:
http://svn.reactos.org/svn/reactos?rev=71957&view=rev
Log:
[NTFS]
Address some minor issues with attrib.c: Fix gcc build. Fix formatting.
Modified:
branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c
Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesyst…
==============================================================================
--- branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c [iso-8859-1] (original)
+++ branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c [iso-8859-1] Sun Jul 17
14:04:01 2016
@@ -89,7 +89,7 @@
// Allocate some memory for the RunBuffer
PUCHAR RunBuffer;
- int RunBufferOffset = 0;
+ ULONG RunBufferOffset = 0;
if (!AttrContext->Record.IsNonResident)
return STATUS_INVALID_PARAMETER;
@@ -108,7 +108,7 @@
// Add newly-assigned clusters to mcb
_SEH2_TRY{
if (!FsRtlAddLargeMcbEntry(&DataRunsMCB,
- NextVBN,
+ NextVBN,
NextAssignedCluster,
RunLength))
{
@@ -217,8 +217,6 @@
LONGLONG DataRunOffset;
ULONGLONG DataRunLength;
LONGLONG DataRunStartLCN;
- ULONGLONG NextCluster;
-
ULONGLONG LastLCN = 0;
// Initialize the MCB, potentially catch an exception
@@ -237,8 +235,6 @@
// Normal data run.
DataRunStartLCN = LastLCN + DataRunOffset;
LastLCN = DataRunStartLCN;
- NextCluster = LastLCN + DataRunLength;
-
_SEH2_TRY{
if (!FsRtlAddLargeMcbEntry(DataRunsMCB,
@@ -295,14 +291,14 @@
ULONG RunBufferOffset = 0;
LONGLONG DataRunOffset;
ULONGLONG LastLCN = 0;
-
LONGLONG Vbn, Lbn, Count;
+ int i;
DPRINT("\t[Vbn, Lbn, Count]\n");
// convert each mcb entry to a data run
- for (int i = 0; FsRtlGetNextLargeMcbEntry(DataRunsMCB, i, &Vbn, &Lbn,
&Count); i++)
+ for (i = 0; FsRtlGetNextLargeMcbEntry(DataRunsMCB, i, &Vbn, &Lbn,
&Count); i++)
{
UCHAR DataRunOffsetSize = 0;
UCHAR DataRunLengthSize = 0;