浏览代码

Suspending workaround for a bug in Windows 10 version 1803 (April 2018 update), fixed in version 1809 (October 2018 update), that caused drag&drop downloads to Windows Explorer end in a wrong folder.

(cherry picked from commit 8a45844e2c4e41b2cb84c4f4be8adac541bfea87)

# Conflicts:
#	source/windows/WinConfiguration.cpp

Source commit: 62917f136b66c88dbf75f744cd8c00c91dc7c4a7
Martin Prikryl 6 年之前
父节点
当前提交
4fd984149e
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      source/forms/CustomScpExplorer.cpp

+ 4 - 2
source/forms/CustomScpExplorer.cpp

@@ -158,7 +158,8 @@ public:
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 bool UseDirectoryMonitorDragDrop()
 bool UseDirectoryMonitorDragDrop()
 {
 {
-  return IsUWP() || (GetWindowsBuild() >= 17134);
+  int Build = GetWindowsBuild();
+  return IsUWP() || ((Build >= 17134) && (Build < 17763));
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 __fastcall TCustomScpExplorerForm::TCustomScpExplorerForm(TComponent* Owner):
 __fastcall TCustomScpExplorerForm::TCustomScpExplorerForm(TComponent* Owner):
@@ -6649,7 +6650,8 @@ void __fastcall TCustomScpExplorerForm::DDExtInitDrag(TFileList * FileList,
 
 
   Created = true;
   Created = true;
 
 
-  if ((IsUWP() && !WinConfiguration->IsDDExtRunning()) || (GetWindowsBuild() >= 17134))
+  int Build = GetWindowsBuild();
+  if ((IsUWP() && !WinConfiguration->IsDDExtRunning()) || ((Build >= 17134) && (Build < 17763)))
   {
   {
     FDragFakeMonitors = new TObjectList();
     FDragFakeMonitors = new TObjectList();
     for (char Drive = FirstDrive; Drive <= LastDrive; Drive++)
     for (char Drive = FirstDrive; Drive <= LastDrive; Drive++)