Added forgotten handling of pseudo-drives in burn_drive_grab()

This commit is contained in:
Thomas Schmitt 2007-09-06 09:44:34 +00:00
parent 7ee7263d7d
commit 9bad2c9362
2 changed files with 11 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.05.195248"
#define Cdrskin_timestamP "2007.09.06.094402"

View File

@ -246,6 +246,16 @@ int burn_drive_grab(struct burn_drive *d, int le)
burn_print(1, "can't grab - already grabbed\n");
return 0;
}
if(d->drive_role != 1) {
d->released = 0;
if(d->drive_role == 2)
d->status = BURN_DISC_BLANK;
else
d->status = BURN_DISC_EMPTY;
d->busy = BURN_DRIVE_IDLE;
return 1;
}
d->status = BURN_DISC_UNREADY;
errcode = d->grab(d);