Fixed SIGSEGV of -eject on non-existent device address
This commit is contained in:
parent
f580ef6637
commit
d0d0af1ba5
@ -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)
|
||||
|
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2006.09.22.170220"
|
||||
#define Cdrskin_timestamP "2006.09.22.172307"
|
||||
|
Loading…
Reference in New Issue
Block a user