Clarified handling of missing drives when it shall be given up. Coverity CID 28697.
This commit is contained in:
parent
1ea10c4a60
commit
ea5edc7f2f
@ -755,9 +755,9 @@ int Xorriso_give_up_drive(struct XorrisO *xorriso, int flag)
|
|||||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
|
||||||
do_eject= 0;
|
do_eject= 0;
|
||||||
}
|
}
|
||||||
Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
||||||
"on attempt to give up drive", 2);
|
"on attempt to give up drive", 2);
|
||||||
if(!in_is_out_too) {
|
if(ret >= 0 && !in_is_out_too) {
|
||||||
if(drive!=NULL)
|
if(drive!=NULL)
|
||||||
isoburn_drive_release(drive, do_eject);
|
isoburn_drive_release(drive, do_eject);
|
||||||
if(dinfo!=NULL)
|
if(dinfo!=NULL)
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2015.11.07.111034"
|
#define Xorriso_timestamP "2015.11.08.110314"
|
||||||
|
Loading…
Reference in New Issue
Block a user