彻底修复多次打开文件管理窗口崩溃的缺陷

1、在主对话框清理子窗口的资源(原先在各自的OnClose函数),通过CLOSE_DELETE_DLG控制。

2、修正CFileManagerDlg的构造函数调用SHGetFileInfo和FromHandle方法,解决多次打开崩溃。

3、更新服务端zlib版本为V1.2.11。(与客户端不同,因inflate_fast 崩溃,没有采用汇编)
This commit is contained in:
yuanyuanxiang
2019-01-13 13:13:59 +08:00
parent 77a1de6704
commit 79903cbdff
16 changed files with 1892 additions and 583 deletions

View File

@@ -111,12 +111,16 @@ VOID CShellDlg::AddKeyBoardData(void)
void CShellDlg::OnClose()
{
#if CLOSE_DELETE_DLG
m_ContextObject->v1 = 0;
#endif
CancelIo((HANDLE)m_ContextObject->sClientSocket);
closesocket(m_ContextObject->sClientSocket);
CDialog::OnClose();
#if CLOSE_DELETE_DLG
delete this;
#endif
}