Browse Source

Issue 2380 – Local directories sometimes cannot be deleted

https://winscp.net/tracker/2380
(cherry picked from commit ec910f92ccc9e8f36763331815933e3ddae0ed7d)
(cherry picked from commit 62f3211df34a3c27576a732850a485a104f04b5f)

Source commit: 6981e153344b9d532413e0dd093522be247d35b1
Martin Prikryl 5 tháng trước cách đây
mục cha
commit
d0b3cf14df
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      source/core/Common.cpp

+ 2 - 0
source/core/Common.cpp

@@ -2609,6 +2609,8 @@ static bool __fastcall DoRecursiveDeleteFile(
           }
           while (Result && (FindNextUnchecked(SearchRec) == 0));
 
+          SearchRec.Close();
+
           if (Result)
           {
             Result = RemoveDir(ApiPath(FileName));