Module: wine Branch: master Commit: 135b132dc2c3e3e8e1c04d771df4627e4c937902 URL: https://gitlab.winehq.org/wine/wine/-/commit/135b132dc2c3e3e8e1c04d771df4627...
Author: Eric Pouech epouech@codeweavers.com Date: Mon Dec 11 11:39:00 2023 +0100
winedump: Skip deleted vector in hash inside PDB header.
Signed-off-by: Eric Pouech epouech@codeweavers.com
---
tools/winedump/pdb.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c index adc0eadc738..c028f2df2b6 100644 --- a/tools/winedump/pdb.c +++ b/tools/winedump/pdb.c @@ -200,11 +200,7 @@ static unsigned get_stream_by_name(struct pdb_reader* reader, const char* name) /* bitfield: first dword is len (in dword), then data */ ok_bits = pdw; pdw += *ok_bits++ + 1; - if (*pdw++ != 0) - { - printf("unexpected value\n"); - return -1; - } + pdw += *pdw + 1; /* skip deleted vector */
for (i = 0; i < count; i++) { @@ -1195,11 +1191,7 @@ static void pdb_jg_dump_header_root(struct pdb_reader* reader) /* bitfield: first dword is len (in dword), then data */ ok_bits = pdw; pdw += *ok_bits++ + 1; - if (*pdw++ != 0) - { - printf("unexpected value\n"); - return; - } + pdw += *pdw + 1; /* skip deleted vector */
for (i = 0; i < count; i++) { @@ -1346,11 +1338,7 @@ static void pdb_ds_dump_header_root(struct pdb_reader* reader) /* bitfield: first dword is len (in dword), then data */ ok_bits = pdw; pdw += *ok_bits++ + 1; - if (*pdw++ != 0) - { - printf("unexpected value\n"); - return; - } + pdw += *pdw + 1; /* skip deleted vector */
for (i = 0; i < count; i++) {