VFS: Fix resizing memory chunks when not needed
Jeffrey Pfau jeffrey@endrift.com
Sun, 23 Oct 2016 10:29:01 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -17,6 +17,7 @@ - Qt: Fix setting overrides
- GBA Cheats: Fix GameShark ROM patches - Qt: Fix cut off tiles and alignment issues in tile viewer - GB MBC: Fix initializing MBC when no ROM is loaded + - VFS: Fix resizing memory chunks when not needed Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M
src/util/vfs/vfs-mem.c
→
src/util/vfs/vfs-mem.c
@@ -238,7 +238,7 @@
ssize_t _vfmWriteExpanding(struct VFile* vf, const void* buffer, size_t size) { struct VFileMem* vfm = (struct VFileMem*) vf; - if (size + vfm->offset >= vfm->size) { + if (size + vfm->offset > vfm->size) { _vfmExpand(vfm, vfm->offset + size); }