ソースを参照

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

rich2014 2 年 前
コミット
8904de8ff4
1 ファイル変更1 行追加1 行削除
  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;