[NTFS] - Fix for C89 compliance.
authorTrevor Thompson <tmt256@email.vccs.edu>
Sun, 27 Aug 2017 14:43:35 +0000 (14:43 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 10 Dec 2017 10:15:19 +0000 (11:15 +0100)
svn path=/branches/GSoC_2016/NTFS/; revision=75693

drivers/filesystems/ntfs/create.c

index 55e1e95..b591b79 100644 (file)
@@ -698,6 +698,7 @@ NtfsCreateDirectory(PDEVICE_EXTENSION DeviceExt,
     ULONGLONG FileMftIndex;
     PB_TREE Tree;
     PINDEX_ROOT_ATTRIBUTE NewIndexRoot;
+    ULONG MaxIndexRootSize;
     ULONG RootLength;
 
     DPRINT1("NtfsCreateFileRecord(%p, %p, %s, %s)\n",
@@ -745,9 +746,9 @@ NtfsCreateDirectory(PDEVICE_EXTENSION DeviceExt,
     }
 
     // Calculate maximum size of index root
-    ULONG MaxIndexRootSize = DeviceExt->NtfsInfo.BytesPerFileRecord 
-                             - ((ULONG_PTR)NextAttribute - (ULONG_PTR)FileRecord)
-                             - sizeof(ULONG) * 2;
+    MaxIndexRootSize = DeviceExt->NtfsInfo.BytesPerFileRecord 
+                       - ((ULONG_PTR)NextAttribute - (ULONG_PTR)FileRecord)
+                       - sizeof(ULONG) * 2;
 
     // Create a new index record from the tree
     Status = CreateIndexRootFromBTree(DeviceExt,