fix: Prevent crash when closing window during background data processing
This commit is contained in:
@@ -179,6 +179,11 @@ BOOL CScreenSpyDlg::OnInitDialog()
|
||||
VOID CScreenSpyDlg::OnClose()
|
||||
{
|
||||
CancelIO();
|
||||
// 等待数据处理完毕
|
||||
if (IsProcessing()) {
|
||||
ShowWindow(SW_HIDE);
|
||||
return;
|
||||
}
|
||||
|
||||
DialogBase::OnClose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user