Prevent calls to osd_read/write when m_pSocket is NULL [nw]

This commit is contained in:
jbu 2014-11-09 02:33:06 +01:00
parent 7f49633a23
commit 9c42a19b2d

View File

@ -134,6 +134,9 @@ READ8_MEMBER(beckerport_device::read)
{
unsigned char data = 0x5a;
if (m_pSocket == NULL)
return data;
switch (offset)
{
case DWS_STATUS:
@ -174,6 +177,9 @@ WRITE8_MEMBER(beckerport_device::write)
char d = (char)data;
file_error filerr;
if (m_pSocket == NULL)
return;
switch (offset)
{
case DWS_STATUS: