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

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

rich2014 2 жил өмнө
parent
commit
8904de8ff4

+ 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;