fix: Prevent crash when closing window during background data processing
This commit is contained in:
@@ -492,11 +492,12 @@ void CFileManagerDlg::fixNetHood(BYTE* pbuffer, int buffersize)
|
||||
|
||||
void CFileManagerDlg::OnClose()
|
||||
{
|
||||
if (m_bIsClosed) return;
|
||||
|
||||
CancelIO();
|
||||
|
||||
DestroyIcon(m_hIcon);
|
||||
// <20>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if (IsProcessing()) {
|
||||
ShowWindow(SW_HIDE);
|
||||
return;
|
||||
}
|
||||
|
||||
DestroyCursor(m_hCursor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user