fix: Prevent crash when closing window during background data processing
This commit is contained in:
@@ -198,10 +198,6 @@ CString CMachineDlg::__MakePriority(DWORD dwPriClass)
|
||||
return strRet;
|
||||
}
|
||||
|
||||
void CMachineDlg::OnReceive()
|
||||
{
|
||||
}
|
||||
|
||||
void CMachineDlg::OnReceiveComplete()
|
||||
{
|
||||
if (m_bIsClosed) return;
|
||||
@@ -320,6 +316,11 @@ void CMachineDlg::OnRclickList(NMHDR* pNMHDR, LRESULT* pResult)
|
||||
void CMachineDlg::OnClose()
|
||||
{
|
||||
CancelIO();
|
||||
// <20>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if (IsProcessing()) {
|
||||
ShowWindow(SW_HIDE);
|
||||
return;
|
||||
}
|
||||
DeleteList();
|
||||
if (m_wndStatusBar.GetSafeHwnd())
|
||||
m_wndStatusBar.DestroyWindow();
|
||||
|
||||
Reference in New Issue
Block a user