GBA: Fix non-PNG savestate loading

This commit is contained in:
Jeffrey Pfau 2016-01-12 21:35:13 -08:00
parent 77787a957c
commit 89d53868da
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ struct GBASerializedState* GBAExtractState(struct VFile* vf, struct GBAExtdata*
return _loadPNGState(vf, extdata); return _loadPNGState(vf, extdata);
} }
#endif #endif
vf->seek(vf, 0, SEEK_SET);
if (vf->size(vf) < (ssize_t) sizeof(struct GBASerializedState)) { if (vf->size(vf) < (ssize_t) sizeof(struct GBASerializedState)) {
return false; return false;
} }