mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Move interface into a class FrameBase. (PR #893)
. Move the Win32 implementation into Win32Frame.
This commit is contained in:
@@ -243,7 +243,7 @@ bool CSuperSerialCard::CheckComm()
|
||||
// now send async events to our app's message handler
|
||||
if (WSAAsyncSelect(
|
||||
/* SOCKET s */ m_hCommListenSocket,
|
||||
/* HWND hWnd */ g_hFrameWindow,
|
||||
/* HWND hWnd */ GetFrame().g_hFrameWindow,
|
||||
/* unsigned int wMsg */ WM_USER_TCP_SERIAL,
|
||||
/* long lEvent */ (FD_ACCEPT | FD_CONNECT | FD_READ | FD_CLOSE)) != 0)
|
||||
{
|
||||
@@ -315,7 +315,7 @@ void CSuperSerialCard::CommTcpSerialCleanup()
|
||||
{
|
||||
if (m_hCommListenSocket != INVALID_SOCKET)
|
||||
{
|
||||
WSAAsyncSelect(m_hCommListenSocket, g_hFrameWindow, 0, 0); // Stop event messages
|
||||
WSAAsyncSelect(m_hCommListenSocket, GetFrame().g_hFrameWindow, 0, 0); // Stop event messages
|
||||
closesocket(m_hCommListenSocket);
|
||||
m_hCommListenSocket = INVALID_SOCKET;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user