1
0
Эх сурвалжийг харах

Bug 1869: Do not default to Documents folder on a network drive even if it is mapped

https://winscp.net/tracker/1869
(cherry picked from commit cd0a3287012baac4aee3e79a689f5775dad62e52)

Source commit: 0992ef83c1c4de5355d30196e80b238b9b19df73
Martin Prikryl 5 жил өмнө
parent
commit
774768072c

+ 2 - 1
source/forms/ScpCommander.cpp

@@ -599,7 +599,8 @@ void __fastcall TScpCommanderForm::LocalDefaultDirectory()
     try
     {
       LocalDirView->HomeDirectory = L"";
-      if (IsUncPath(LocalDirView->HomeDirectory))
+      UnicodeString HomeDrive = DriveInfo->GetDriveKey(LocalDirView->HomeDirectory);
+      if (DriveInfo->Get(HomeDrive)->DriveType == DRIVE_REMOTE)
       {
         LocalDirView->Path = DriveInfo->AnyValidPath();
       }