Explorar o código

FIX: DARWIN: unmount driver compatible with MacOS 13 (#689)

rich2014 %!s(int64=2) %!d(string=hai) anos
pai
achega
8904de8ff4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/platform/unix/umyunix.pas

+ 1 - 1
src/platform/unix/umyunix.pas

@@ -539,7 +539,7 @@ begin
       Result := fpSystemStatus('pumount ' + Drive^.DeviceId) = 0;
     if not Result then
 {$ELSEIF DEFINED(DARWIN)}
-    Result := fpSystemStatus('diskutil unmount ' + Drive^.DeviceId) = 0;
+    Result := fpSystemStatus('diskutil unmount ' + Drive^.Path) = 0;
     if not Result then
 {$ENDIF}
     Result := fpSystemStatus('umount ' + Drive^.Path) = 0;