mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
02745: all sets using autosave: Games using autosave segfault on startup
This commit is contained in:
parent
446f13607f
commit
f32fa3b2e6
@ -287,7 +287,7 @@ file_error core_fcompress(core_file *file, int level)
|
|||||||
file->zdata = malloc(sizeof(*file->zdata));
|
file->zdata = malloc(sizeof(*file->zdata));
|
||||||
if (file->zdata == NULL)
|
if (file->zdata == NULL)
|
||||||
return FILERR_OUT_OF_MEMORY;
|
return FILERR_OUT_OF_MEMORY;
|
||||||
memset(file->zdata, 0, sizeof(file->zdata));
|
memset(file->zdata, 0, sizeof(*file->zdata));
|
||||||
|
|
||||||
/* initialize the stream and compressor */
|
/* initialize the stream and compressor */
|
||||||
if ((file->openflags & OPEN_FLAG_WRITE) != 0)
|
if ((file->openflags & OPEN_FLAG_WRITE) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user