diff --git a/pcsx2/IopBios.cpp b/pcsx2/IopBios.cpp index 742e56be0ab19f..213de01dbe8ddf 100644 --- a/pcsx2/IopBios.cpp +++ b/pcsx2/IopBios.cpp @@ -1463,7 +1463,11 @@ bool SaveStateBase::handleFreeze() //save the current file position const u32 fd = R3000A::handles[i].fd_index; IOManFile* file = R3000A::ioman::getfd(fd + firstfd); - s32 pos = file->lseek(0, SEEK_CUR); + s32 pos; + + // Some files may have never existed, but we still need to save their handle + // UlaunchELF 4.4 can do this with LAUNCHELF.CNF + pos = file ? file->lseek(0, SEEK_CUR) : 0; Freeze(pos); //save the parameters for opening the file