fix: Prevent crash when closing window during background data processing

This commit is contained in:
yuanyuanxiang
2025-06-29 03:29:35 +08:00
parent c59232d179
commit aa34b64995
19 changed files with 106 additions and 30 deletions

View File

@@ -179,6 +179,11 @@ BOOL CScreenSpyDlg::OnInitDialog()
VOID CScreenSpyDlg::OnClose()
{
CancelIO();
// 等待数据处理完毕
if (IsProcessing()) {
ShowWindow(SW_HIDE);
return;
}
DialogBase::OnClose();
}