Don't segfault on software list image save. (nw)

This commit is contained in:
Curt Coder 2015-05-26 13:19:57 +03:00
parent 2f3085aa17
commit b8136ba189

View File

@ -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: