all repos — mgba @ 793a89d091c4756e041a8702362ea61b80692b15

mGBA Game Boy Advance Emulator

Fix seeking to end of file
Jeffrey Pfau jeffrey@endrift.com
Thu, 17 Jul 2014 02:51:17 -0700
commit

793a89d091c4756e041a8702362ea61b80692b15

parent

d2272ba9bac93094d95faaf3d766022765906b3f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/util/vfs-zip.csrc/util/vfs-zip.c

@@ -110,7 +110,7 @@ vfz->offset = position;

return position; } - if (position < vfz->fileSize) { + if (position <= vfz->fileSize) { ssize_t read = vf->read(vf, 0, position - vfz->offset); if (read < 0) { return -1;