Corrected error value in case file is not found in zip file
This commit is contained in:
parent
e5112b3675
commit
565ca9fee8
|
@ -119,6 +119,11 @@ int read_zip_file(const char * archive_path, const char *relative_path, void **b
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unzClose( zipfile );
|
unzClose( zipfile );
|
||||||
|
if(!finished_reading)
|
||||||
|
{
|
||||||
|
RARCH_ERR("File %s not found in %s\n",relative_path,archive_path);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return bytes_read;
|
return bytes_read;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue