Skip to content

Commit

Permalink
Fix a problem with setMessageWindow()
Browse files Browse the repository at this point in the history
  • Loading branch information
drmfinlay committed Oct 22, 2024
1 parent b59f573 commit 8c75ed1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NatlinkSource/DragonCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3727,18 +3727,19 @@ BOOL CDragonCode::setMessageWindow(
m_pMessageWindowCallback = pCallback;

// start the second thread for displaying messages
// and tell it about our message window
if( !m_pSecdThrd )
{
m_pSecdThrd = new MessageWindow( dwFlags );
m_pSecdThrd->setMsgWnd( m_hMsgWnd );
}

// otherwise, update the window
else
{
m_pSecdThrd->updateWindow( dwFlags );
}

// tell the second thread about our message window
m_pSecdThrd->setMsgWnd( m_hMsgWnd );
}

return TRUE;
Expand Down

0 comments on commit 8c75ed1

Please sign in to comment.