mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +03:00
Prevent calls to osd_read/write when m_pSocket is NULL [nw]
This commit is contained in:
parent
7f49633a23
commit
9c42a19b2d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user