From: Eric Pouech epouech@codeweavers.com
Signed-off-by: Eric Pouech epouech@codeweavers.com --- tools/winedump/pe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index bdf0aca2ab0..47c6c8bdbb6 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -2913,7 +2913,7 @@ static UINT clr_blob_size( const BYTE *data, UINT data_size, UINT *skip ) *skip = 2; return ((data[0] & ~0xc0) << 8) + data[1]; } - if (data_size < 3) return 0; + if (data_size < 4) return 0; if (!(data[0] & 0x20)) { *skip = 4; @@ -2948,7 +2948,7 @@ static void print_clr_blobs( const BYTE *data, UINT data_size ) } } printf( "\n" ); - data_size -= size - skip; + data_size -= size + skip; blob += size + skip; } clr_indent -= 4;