cdrom: Properly empty the path of image if it can't be loaded

This commit is contained in:
Cacodemon345
2022-08-11 01:13:49 +06:00
parent 40bc4058cc
commit 740108c37c

View File

@@ -257,6 +257,7 @@ image_open_abort(cdrom_t *dev)
cdrom_image_close(dev);
dev->ops = NULL;
dev->host_drive = 0;
dev->image_path[0] = 0;
return 1;
}