Commit a0d4a58a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedump: Explain a bit more errors on hash header.

parent 4fc2c331
...@@ -249,6 +249,9 @@ static void dump_dbi_hash_table(const BYTE* root, unsigned size, const char* nam ...@@ -249,6 +249,9 @@ 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 || 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)) (size - (sizeof(DBI_HASH_HEADER) + hdr->hash_records_size + DBI_BITMAP_HASH_SIZE)) % sizeof(unsigned))
{ {
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); printf("%s\t\tIncorrect hash structure\n", pfx);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment