From 7fe952ddebb4024f1a216fd2eb79546b57c0ba0e Mon Sep 17 00:00:00 2001 From: Jamiras Date: Tue, 31 Mar 2020 11:08:35 -0600 Subject: [PATCH] don't ignore errors from decompress_v5_map --- libretro-common/formats/libchdr/libchdr_chd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libretro-common/formats/libchdr/libchdr_chd.c b/libretro-common/formats/libchdr/libchdr_chd.c index d076ee1291..698a6cc21a 100644 --- a/libretro-common/formats/libchdr/libchdr_chd.c +++ b/libretro-common/formats/libchdr/libchdr_chd.c @@ -826,14 +826,13 @@ chd_error chd_open_file(RFILE *file, int mode, chd_file *parent, chd_file **chd) if (newchd->header.version < 5) { err = map_read(newchd); - if (err != CHDERR_NONE) - EARLY_EXIT(err); } else { err = decompress_v5_map(newchd, &(newchd->header)); - (void)err; } + if (err != CHDERR_NONE) + EARLY_EXIT(err); #ifdef NEED_CACHE_HUNK /* allocate and init the hunk cache */