reactos/sdk
George Bișoc 279f8f8864
[CMLIB] Fix the bin during hive initialization from memory if it's corrupt
As we iterate over the chunk hive data pointer for hive bins that we are going
to enlist, we might encounter one or several bins that would get corrupted
during a premature abortion of a registry writing operation such as due to
a power outage of the system, hardware malfunction, etc.

Corruption at the level of hive bins is nasty because they contain actual cell
data of registry information such as keys, values etc. Assuming a bin is corrupt
in part we can fix it by recovering some of the bin properties that, theoretically,
could be fixed -- namely the signature, size and offset.

For size and offset we are more or less safe because a bin typically has a size
of a block, and the offset is the coordinate index of where a hive bin should lay at.
2023-11-19 20:44:29 +01:00
..
cmake [CMAKE] Remove "/Gy" option from ML 2023-11-19 09:19:33 +02:00
include [PSDK][SHELLBTRFS] Get rid of FILE_INFO_BY_HANDLE_CLASS.MaximumFileInfoByHandlesClass (#6003) 2023-11-19 19:42:18 +01:00
lib [CMLIB] Fix the bin during hive initialization from memory if it's corrupt 2023-11-19 20:44:29 +01:00
tools [GEN_BASEADDRESS] Add handling of 64 bit builds 2023-11-10 19:20:24 +02:00