Fixed a SIGSEGV introduced by previous revision
This commit is contained in:
parent
ca532f7623
commit
193c260285
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2014.06.09.183251"
|
#define Cdrskin_timestamP "2014.06.10.130721"
|
||||||
|
@ -2638,7 +2638,7 @@ off_t burn_disc_available_space(struct burn_drive *d,
|
|||||||
struct burn_write_opts *o)
|
struct burn_write_opts *o)
|
||||||
{
|
{
|
||||||
int lba, nwa, ret;
|
int lba, nwa, ret;
|
||||||
off_t bytes;
|
off_t bytes, start_byte = 0;
|
||||||
|
|
||||||
if (burn_drive_is_released(d))
|
if (burn_drive_is_released(d))
|
||||||
return 0;
|
return 0;
|
||||||
@ -2647,7 +2647,9 @@ off_t burn_disc_available_space(struct burn_drive *d,
|
|||||||
if (d->drive_role == 0)
|
if (d->drive_role == 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (d->drive_role != 1) {
|
if (d->drive_role != 1) {
|
||||||
ret = burn_os_stdio_capacity(d->devname, o->start_byte, &bytes);
|
if (o != NULL)
|
||||||
|
start_byte = o->start_byte;
|
||||||
|
ret = burn_os_stdio_capacity(d->devname, start_byte, &bytes);
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
bytes = d->media_capacity_remaining;
|
bytes = d->media_capacity_remaining;
|
||||||
if (bytes <= 0)
|
if (bytes <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user