소스 검색

Bug 1746: Failure when shutting down Windows

https://winscp.net/tracker/1746

Source commit: 7bf857c4bd897ebc2bfe71831cd0d564fb5967dd
Martin Prikryl 6 년 전
부모
커밋
6bfdce4c9b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      source/forms/CustomScpExplorer.cpp

+ 2 - 0
source/forms/CustomScpExplorer.cpp

@@ -287,6 +287,8 @@ __fastcall TCustomScpExplorerForm::~TCustomScpExplorerForm()
 {
   // this has to be one of the very first things to do
   StopUpdateThread();
+  // This is needed when shuting down Windows only. Otherwise it's already set NULL from Execute()
+  TTerminalManager::Instance()->ScpExplorer = NULL;
 
   delete FCustomCommandLocalFileList;
   delete FCustomCommandRemoteFileList;