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

Consider all types besides DRIVE_NETWORK to be local.

Jordan Russell 1 жил өмнө
parent
commit
cea1552c8f

+ 1 - 1
Projects/Src/InstFunc.pas

@@ -194,7 +194,7 @@ begin
   var Drive := PathExtractDrive(Path);
   var Drive := PathExtractDrive(Path);
   var IsAdminAndIsLocalTemp := IsAdminAndNotDebugging and (Drive <> '') and
   var IsAdminAndIsLocalTemp := IsAdminAndNotDebugging and (Drive <> '') and
     not PathCharIsSlash(Drive[1]) and
     not PathCharIsSlash(Drive[1]) and
-    (GetDriveType(PChar(AddBackslash(Drive))) = DRIVE_FIXED);
+    (GetDriveType(PChar(AddBackslash(Drive))) <> DRIVE_NETWORK);
 
 
   if not IsUnderWindowsTemp and not IsAdminAndIsLocalTemp then begin
   if not IsUnderWindowsTemp and not IsAdminAndIsLocalTemp then begin
     Result := CreateDirectory(PChar(Path), nil);
     Result := CreateDirectory(PChar(Path), nil);