Bug fix: with non-Linux adapters there were 0 readable bytes on block devices

This commit is contained in:
Thomas Schmitt 2010-01-01 12:39:20 +00:00
parent 0544ac8cd3
commit ed972271ec
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2009.12.30.201025"
#define Cdrskin_timestamP "2010.01.01.124042"

View File

@ -1340,7 +1340,8 @@ int burn_drive_grab_dummy(struct burn_drive_info *drive_infos[], char *fname)
ret = burn_os_stdio_capacity(fname,
&read_size);
if (ret <= 0)
read_size = -1;
read_size = (off_t) 0x7ffffff0 *
(off_t) 2048;
}
}
if (ret == -1 || S_ISBLK(stbuf.st_mode) ||