Browse Source

Fixed SIGSEGV of -eject on non-existent device address

trunk@386
Thomas Schmitt 16 years ago
parent
commit
d0d0af1ba5
  1. 4
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

4
cdrskin/cdrskin.c

@ -3710,12 +3710,8 @@ int Cdrskin_eject(struct CdrskiN *skin, int flag)
if(!skin->do_eject)
return(1);
/* not active yet :
if(skin->n_drives<=skin->driveno)
return(2);
*/
for(i= 0;i<max_try;i++) {
ret= Cdrskin_grab_drive(skin,2|((i<max_try-1)<<2));
if(ret>0 || i>=max_try-1)

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.22.170220"
#define Cdrskin_timestamP "2006.09.22.172307"

Loading…
Cancel
Save