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