Author: tthompson
Date: Wed Jul  5 22:10:22 2017
New Revision: 75290

URL: http://svn.reactos.org/svn/reactos?rev=75290&view=rev
Log:
[NTFS] - Fix some formatting / style issues, per CR-123.

Modified:
    branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c
    branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/btree.c
    branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/create.c
    branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/fcb.c
    branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c

Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c
URL: 
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/attrib.c?rev=75290&r1=75289&r2=75290&view=diff
==============================================================================
--- 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] 
Wed Jul  5 22:10:22 2017
@@ -316,7 +316,8 @@
         NextVBN = AttrContext->Record.NonResident.HighestVCN + 1;
 
     // Add newly-assigned clusters to mcb
-    _SEH2_TRY{
+    _SEH2_TRY
+    {
         if (!FsRtlAddLargeMcbEntry(&AttrContext->DataRunsMCB,
                                    NextVBN,
                                    NextAssignedCluster,
@@ -796,7 +797,7 @@
             break;
         }
 
-        if( LargeLbn != -1)
+        if (LargeLbn != -1)
         {
             // deallocate this cluster
             RtlClearBits(&Bitmap, LargeLbn, 1);

Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/btree.c
URL: 
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/btree.c?rev=75290&r1=75289&r2=75290&view=diff
==============================================================================
--- branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/btree.c    [iso-8859-1] 
(original)
+++ branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/btree.c    [iso-8859-1] 
Wed Jul  5 22:10:22 2017
@@ -77,7 +77,7 @@
         = Key2->IndexEntry->FileName.NameLength * sizeof(WCHAR);
 
     // Are the two keys the same length?
-    if(Key1Name.Length == Key2Name.Length)
+    if (Key1Name.Length == Key2Name.Length)
         return RtlCompareUnicodeString(&Key1Name, &Key2Name, !CaseSensitive);
 
     // Is Key1 shorter?
@@ -416,7 +416,9 @@
         DbgPrint(" '%wZ'\n", &FileName);
     }
     else
+    {
         DbgPrint(" (Dummy Key)\n");
+    }
 }
 
 VOID

Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/create.c
URL: 
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/create.c?rev=75290&r1=75289&r2=75290&view=diff
==============================================================================
--- branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/create.c   [iso-8859-1] 
(original)
+++ branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/create.c   [iso-8859-1] 
Wed Jul  5 22:10:22 2017
@@ -299,7 +299,7 @@
                            ParentFcb);
         }
 
-        if (!NT_SUCCESS (Status))
+        if (!NT_SUCCESS(Status))
         {
             DPRINT("Could not make a new FCB, status: %x\n", Status);
 
@@ -347,7 +347,7 @@
 
     DeviceExt = DeviceObject->DeviceExtension;
     ASSERT(DeviceExt);
-    Stack = IoGetCurrentIrpStackLocation (Irp);
+    Stack = IoGetCurrentIrpStackLocation(Irp);
     ASSERT(Stack);
 
     RequestedDisposition = ((Stack->Parameters.Create.Options >> 24) & 0xff);

Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/fcb.c
URL: 
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/fcb.c?rev=75290&r1=75289&r2=75290&view=diff
==============================================================================
--- branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/fcb.c      [iso-8859-1] 
(original)
+++ branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/fcb.c      [iso-8859-1] 
Wed Jul  5 22:10:22 2017
@@ -617,7 +617,7 @@
 
 #if 1
     /* Trivial case, open of the root directory on volume */
-    if (pFileName [0] == L'\0' || wcscmp(pFileName, L"\\") == 0)
+    if (pFileName[0] == L'\0' || wcscmp(pFileName, L"\\") == 0)
     {
         DPRINT("returning root FCB\n");
 

Modified: branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c
URL: 
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c?rev=75290&r1=75289&r2=75290&view=diff
==============================================================================
--- branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c      [iso-8859-1] 
(original)
+++ branches/GSoC_2016/NTFS/drivers/filesystems/ntfs/mft.c      [iso-8859-1] 
Wed Jul  5 22:10:22 2017
@@ -448,7 +448,7 @@
 
     if (NT_SUCCESS(Status))
     {
-        if(AttrContext->Record.IsNonResident)
+        if (AttrContext->Record.IsNonResident)
             Fcb->RFCB.AllocationSize.QuadPart = 
AttrContext->Record.NonResident.AllocatedSize;
         else
             Fcb->RFCB.AllocationSize = *DataSize;
@@ -1319,7 +1319,7 @@
     } // end while (Length > 0) [more data to write]
 
     // TEMPTEMP
-    if(Context->Record.IsNonResident)
+    if (Context->Record.IsNonResident)
         ExFreePoolWithTag(TempBuffer, TAG_NTFS);
 
     Context->CacheRun = DataRun;


Reply via email to