浏览代码

Bug 1376: Failure when a local drive is removed

https://winscp.net/tracker/1376

Source commit: 7c9aede749a9c4088038097a490dd3daf492c597
Martin Prikryl 10 年之前
父节点
当前提交
c337170d52
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/packages/filemng/DriveView.pas

+ 1 - 1
source/packages/filemng/DriveView.pas

@@ -1346,7 +1346,7 @@ begin
         if WasValid then
         {Drive has been removed => delete rootnode:}
         begin
-          if Directory[1] = Drive then
+          if (Directory <> '') and (Directory[1] = Drive) then
           begin
             Directory := NodePathName(DriveStatus[Drive].RootNode.GetPrevSibling);
             if not Assigned(Selected) then