Prepared Xorriso_get_profile() for potential call without flag bit1
This commit is contained in:
parent
5f5b0c7016
commit
421693bb73
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2008.05.13.135251"
|
||||
#define Xorriso_timestamP "2008.05.13.153837"
|
||||
|
@ -5058,7 +5058,8 @@ int Xorriso_get_profile(struct XorrisO *xorriso, int *profile_number,
|
||||
|
||||
*profile_number= 0;
|
||||
profile_name[0]= 0;
|
||||
if(xorriso->out_drive_handle==NULL)
|
||||
if(((flag&2) && xorriso->out_drive_handle==NULL) ||
|
||||
((!(flag&2)) && xorriso->in_drive_handle==NULL))
|
||||
return(0);
|
||||
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
||||
"on attempt to determine media type", flag&2);
|
||||
|
Loading…
Reference in New Issue
Block a user