Fixed SIGSEGV of -eject on non-existent device address

This commit is contained in:
Thomas Schmitt 2006-09-22 17:22:17 +00:00
parent f580ef6637
commit d0d0af1ba5
2 changed files with 1 additions and 5 deletions

View File

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

View File

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