Corrected error value in case file is not found in zip file

This commit is contained in:
Timo Strunk 2014-09-12 19:03:19 +02:00
parent e5112b3675
commit 565ca9fee8

View File

@ -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;
}