mirror of https://github.com/mgba-emu/mgba.git
VFS: Fix minizip write returning 0 on success instead of size
This commit is contained in:
parent
e3605d291c
commit
838e4a182e
1
CHANGES
1
CHANGES
|
@ -6,6 +6,7 @@ Other fixes:
|
|||
- Qt: Expand criteria for tag branch names (fixes mgba.io/i/2679)
|
||||
- Qt: Fix scanning specific e-Reader dotcodes (fixes mgba.io/i/2693)
|
||||
- Res: Fix species name location in Ruby/Sapphire revs 1/2 (fixes mgba.io/i/2685)
|
||||
- VFS: Fix minizip write returning 0 on success instead of size
|
||||
Misc:
|
||||
- macOS: Add category to plist (closes mgba.io/i/2691)
|
||||
- macOS: Fix modern build with libepoxy (fixes mgba.io/i/2700)
|
||||
|
|
|
@ -593,7 +593,11 @@ ssize_t _vfzRead(struct VFile* vf, void* buffer, size_t size) {
|
|||
|
||||
ssize_t _vfzWrite(struct VFile* vf, const void* buffer, size_t size) {
|
||||
struct VFileZip* vfz = (struct VFileZip*) vf;
|
||||
return zipWriteInFileInZip(vfz->z, buffer, size);
|
||||
int res = zipWriteInFileInZip(vfz->z, buffer, size);
|
||||
if (res != ZIP_OK) {
|
||||
return res;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
void* _vfzMap(struct VFile* vf, size_t size, int flags) {
|
||||
|
|
Loading…
Reference in New Issue