fix: Prevent crash when closing window during background data processing
This commit is contained in:
@@ -883,10 +883,13 @@ void CFileManagerDlg::FixedRemoteDriveList()
|
||||
|
||||
void CFileManagerDlg::OnClose()
|
||||
{
|
||||
// TODO: Add your message handler code here and/or call default
|
||||
CoUninitialize();
|
||||
|
||||
CancelIO();
|
||||
// <20>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if (IsProcessing()) {
|
||||
ShowWindow(SW_HIDE);
|
||||
return;
|
||||
}
|
||||
CoUninitialize();
|
||||
|
||||
DialogBase::OnClose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user