From 565ca9fee84e9d73ca11077df3061c0bddb19ff8 Mon Sep 17 00:00:00 2001 From: Timo Strunk Date: Fri, 12 Sep 2014 19:03:19 +0200 Subject: [PATCH] Corrected error value in case file is not found in zip file --- decompress/zip_support.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/decompress/zip_support.c b/decompress/zip_support.c index bd51e95fdc..376ee69a35 100644 --- a/decompress/zip_support.c +++ b/decompress/zip_support.c @@ -119,6 +119,11 @@ int read_zip_file(const char * archive_path, const char *relative_path, void **b } } unzClose( zipfile ); + if(!finished_reading) + { + RARCH_ERR("File %s not found in %s\n",relative_path,archive_path); + return -1; + } return bytes_read; }