import from MESS (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-02-14 10:38:12 +00:00
parent 417378e40c
commit cfabeee3ab

View File

@ -256,7 +256,7 @@ bool cassette_image_device::call_load()
device_image_interface *image = NULL;
interface(image);
if (has_been_created())
if ((has_been_created()) || (length() == 0))
{
/* creating an image */
err = cassette_create((void *)image, &image_ioprocs, &wavfile_format, m_create_opts, CASSETTE_FLAG_READWRITE|CASSETTE_FLAG_SAVEONEXIT, &m_cassette);