Merge pull request #135 from fel1x-developer/master

Fix Error in ServerCtrl
This commit is contained in:
Sam Vanheer 2022-03-15 19:59:45 +01:00 committed by GitHub
commit e6f0f7f23d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ int CServerCtrlDlg::RunModalLoop(DWORD dwFlags)
BOOL bShowIdle = (dwFlags & MLF_SHOWONIDLE) && !(GetStyle() & WS_VISIBLE);
HWND hWndParent = ::GetParent(m_hWnd);
m_nFlags |= (WF_MODALLOOP|WF_CONTINUEMODAL);
MSG* pMsg = &AfxGetThread()->m_msgCur;
MSG* pMsg = AfxGetCurrentMessage();
// acquire and dispatch messages until the modal state is done
for (;;)