src/cdrom/macosx/SDL_syscdrom.c
changeset 1793 4d66375c2012
parent 1635 92947e3a18db
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
     1.1 --- a/src/cdrom/macosx/SDL_syscdrom.c	Tue May 09 07:50:28 2006 +0000
     1.2 +++ b/src/cdrom/macosx/SDL_syscdrom.c	Tue May 09 07:52:04 2006 +0000
     1.3 @@ -453,8 +453,8 @@
     1.4  static int SDL_SYS_CDEject(SDL_CD *cdrom)
     1.5  {
     1.6      OSStatus err;
     1.7 -	HParamBlockRec  pb;
     1.8 -    
     1.9 +    pid_t dissenter;
    1.10 +
    1.11      if (fakeCD) {
    1.12          SDL_SetError (kErrorFakeDevice);
    1.13          return -1;
    1.14 @@ -475,9 +475,7 @@
    1.15      status = CD_STOPPED;
    1.16      
    1.17  	/* Eject the volume */
    1.18 -	pb.ioParam.ioNamePtr = NULL;
    1.19 -	pb.ioParam.ioVRefNum = volumes[cdrom->id];
    1.20 -	err = PBUnmountVol((ParamBlockRec *) &pb);
    1.21 +	err = FSEjectVolumeSync(volumes[cdrom->id], kNilOptions, &dissenter);
    1.22  
    1.23  	if (err != noErr) {
    1.24          Unlock ();