https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9a91a51f17c3baf5c510effb869e4d6fb4097e6c

commit 9a91a51f17c3baf5c510effb869e4d6fb4097e6c
Author: Trevor Thompson <[email protected]>
AuthorDate: Sun Aug 27 14:43:35 2017 +0000

    [NTFS] - Fix for C89 compliance.
    
    svn path=/branches/GSoC_2016/NTFS/; revision=75693
---
 drivers/filesystems/ntfs/create.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/filesystems/ntfs/create.c 
b/drivers/filesystems/ntfs/create.c
index 55e1e95a38..b591b79073 100644
--- a/drivers/filesystems/ntfs/create.c
+++ b/drivers/filesystems/ntfs/create.c
@@ -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,

Reply via email to