Fixed validity checks for MC6845.

This commit is contained in:
Aaron Giles 2008-12-22 05:38:43 +00:00
parent a2081bb2b1
commit 6c4013134f

View File

@ -871,7 +871,7 @@ static DEVICE_VALIDITY_CHECK( mc6845 )
int error = FALSE; int error = FALSE;
const mc6845_interface *intf = (const mc6845_interface *) device->static_config; const mc6845_interface *intf = (const mc6845_interface *) device->static_config;
if (intf != NULL) if (intf != NULL && intf->screen_tag != NULL)
{ {
if (device->clock <= 0) if (device->clock <= 0)
{ {