Module: wine Branch: master Commit: a0d4a58a340e74b09577395359cb0ac4fb6dd023 URL: https://gitlab.winehq.org/wine/wine/-/commit/a0d4a58a340e74b09577395359cb0ac...
Author: Eric Pouech eric.pouech@gmail.com Date: Wed Feb 1 18:30:45 2023 +0100
winedump: Explain a bit more errors on hash header.
Signed-off-by: Eric Pouech eric.pouech@gmail.com
---
tools/winedump/pdb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c index e98776c67b9..5ab1b515691 100644 --- a/tools/winedump/pdb.c +++ b/tools/winedump/pdb.c @@ -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 {