Browse Source

* fix for drive existence in windows app modus, closes #40558

marcoonthegit 1 year ago
parent
commit
59883da0a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/sysutils/disk.inc

+ 1 - 1
rtl/objpas/sysutils/disk.inc

@@ -110,7 +110,7 @@ begin
   Result:=False;
   Result:=False;
   ADrv:=ExtractFileDrive(Dir);
   ADrv:=ExtractFileDrive(Dir);
   if (ADrv<>'') and
   if (ADrv<>'') and
-     (not DirectoryExists(ADrv))
+     (not DirectoryExists(ADrv)+DirectorySeparator)
      {$IFNDEF FORCEDIR_NO_UNC_SUPPORT} and (not IsUncDrive(ADrv)){$ENDIF} then
      {$IFNDEF FORCEDIR_NO_UNC_SUPPORT} and (not IsUncDrive(ADrv)){$ENDIF} then
     Exit;
     Exit;
   if Dir='' then
   if Dir='' then