diff --git a/CHANGES b/CHANGES index e9bb3e6f0..96b44e8bd 100644 --- a/CHANGES +++ b/CHANGES @@ -30,6 +30,7 @@ Bugfixes: - GBA Video: WIN0/1 take priority over OBJWIN - PSP2: Fix mapping/unmapping from not at 0 - Wii: Fix garbage flash at startup + - VFS: Fix uninitialized varaible reading from 7z Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure diff --git a/src/util/vfs/vfs-lzma.c b/src/util/vfs/vfs-lzma.c index 255e87322..e8db0f871 100644 --- a/src/util/vfs/vfs-lzma.c +++ b/src/util/vfs/vfs-lzma.c @@ -301,6 +301,7 @@ struct VFile* _vd7zOpenFile(struct VDir* vd, const char* path, int mode) { vf->d.truncate = _vf7zTruncate; vf->d.size = _vf7zSize; vf->d.sync = _vf7zSync; + vf->offset = 0; return &vf->d; }