[CMLIB]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 13 Jan 2016 01:40:58 +0000 (01:40 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 13 Jan 2016 01:40:58 +0000 (01:40 +0000)
commit734bc29142340ca96199778aae4eece84ec25d61
tree8d5d4c0a2eb9b1274317be5bced91532d6c05ab4
parent36a7330eeee3641435c35e5b890b772b1197eb5a
[CMLIB]
- Fix HBLOCK_SIZE vs. HSECTOR_SIZE mix-ups in HvpGetHiveHeader.
- Add a function to create cluster-aligned hive base blocks (HBASE_BLOCK) based on the existing code of HvpGetHiveHeader, and use it everytime we need to allocate HBASE_BLOCKs.
- Keep the actual base block size in the BaseBlockAlloc member, and use this value for the "quota" parameter when we free the blocks.
- Introduce & use a function to initialize the hive file name array (mainly used for debugging purposes).
- "HvpInitializeMemoryInplaceHive" should read "HvpInitializeFlatHive" instead since this function is used to initialize a flat hive. Memory-in-place hives are a different thing.
- Fix some memory leaks in the error paths of HvLoadHive.
- Initialize some additional hive members in HvInitialize(Hive).

svn path=/trunk/; revision=70582
reactos/lib/cmlib/hiveinit.c