[CMLIB] Fix compiling as NT6+ (#840)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Wed, 5 Sep 2018 18:18:14 +0000 (20:18 +0200)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Wed, 5 Sep 2018 18:18:14 +0000 (20:18 +0200)
Addendum to r70582 (734bc291).
CORE-12596

sdk/lib/cmlib/hiveinit.c

index ba4e784..1ad182c 100644 (file)
@@ -556,7 +556,9 @@ HvInitialize(
     Hive->BaseBlockAlloc = sizeof(HBASE_BLOCK); // == HBLOCK_SIZE
 
     Hive->Version = HSYS_MINOR;
+#if (NTDDI_VERSION < NTDDI_VISTA)
     Hive->Log = (FileType == HFILE_TYPE_LOG);
+#endif
     Hive->HiveFlags = HiveFlags & ~HIVE_NOLAZYFLUSH;
 
     switch (OperationType)