mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Don't segfault on software list image save. (nw)
This commit is contained in:
parent
2f3085aa17
commit
b8136ba189
@ -368,6 +368,9 @@ file_error osd_truncate(osd_file *file, UINT64 offset)
|
||||
{
|
||||
UINT32 result;
|
||||
|
||||
if (!file || !file->handle)
|
||||
return FILERR_FAILURE;
|
||||
|
||||
switch (file->type)
|
||||
{
|
||||
case SDLFILE_FILE:
|
||||
|
Loading…
Reference in New Issue
Block a user