Prepared Xorriso_get_profile() for potential call without flag bit1

This commit is contained in:
Thomas Schmitt 2008-05-13 15:38:17 +00:00
parent b450b1d249
commit 0adc5cf1dc
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.05.13.135251" #define Xorriso_timestamP "2008.05.13.153837"

View File

@ -5058,7 +5058,8 @@ int Xorriso_get_profile(struct XorrisO *xorriso, int *profile_number,
*profile_number= 0; *profile_number= 0;
profile_name[0]= 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); return(0);
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive, ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
"on attempt to determine media type", flag&2); "on attempt to determine media type", flag&2);