mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
cassimg: don't construct string from nullptr (#8265).
Note that std::string() was tried but somehow caused another bug (tape preset as play was instead stopped).
This commit is contained in:
parent
b284f3e655
commit
645aef00d7
@ -221,7 +221,7 @@ cassette_image::error cassette_image::open(void *file, const io_procs *procs,
|
||||
const Format *format, int flags, ptr &outcassette)
|
||||
{
|
||||
const Format *const formats[2] = { format, nullptr };
|
||||
return open_choices(file, procs, nullptr, formats, flags, outcassette);
|
||||
return open_choices(file, procs, {}, formats, flags, outcassette);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user