mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-11 05:29:55 +00:00
Fix ASSERT when SSC is accessed, but Serial Port 'None' is selected
This commit is contained in:
parent
2ec999056d
commit
563507f44b
@ -270,9 +270,8 @@ BOOL CSuperSerialCard::CheckComm()
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (m_dwSerialPortItem)
|
||||
{
|
||||
_ASSERT(m_dwSerialPortItem);
|
||||
_ASSERT(m_dwSerialPortItem < m_vecSerialPortsItems.size()-1); // size()-1 is TCP item
|
||||
TCHAR portname[SIZEOF_SERIALCHOICE_ITEM];
|
||||
wsprintf(portname, TEXT("COM%u"), m_vecSerialPortsItems[m_dwSerialPortItem]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user