winedump: Explain a bit more errors on hash header.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
Eric Pouech 2023-02-01 18:30:45 +01:00 committed by Alexandre Julliard
parent 4fc2c3319e
commit a0d4a58a34

View file

@ -249,7 +249,10 @@ static void dump_dbi_hash_table(const BYTE* root, unsigned size, const char* nam
sizeof(DBI_HASH_HEADER) + hdr->hash_records_size + DBI_BITMAP_HASH_SIZE > size ||
(size - (sizeof(DBI_HASH_HEADER) + hdr->hash_records_size + DBI_BITMAP_HASH_SIZE)) % sizeof(unsigned))
{
printf("%s\t\tIncorrect hash structure\n", pfx);
if (size >= sizeof(DBI_HASH_HEADER) && !hdr->hash_records_size)
printf("%s\t\tEmpty hash structure\n", pfx);
else
printf("%s\t\tIncorrect hash structure\n", pfx);
}
else
{