mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-13 09:25:32 +00:00
Display error message if not ISO960 or no Joliet format
This commit is contained in:
@@ -240,8 +240,10 @@ nextblock:
|
|||||||
|
|
||||||
if ((ipd.type[0] != ISO_VD_PRIMARY) ||
|
if ((ipd.type[0] != ISO_VD_PRIMARY) ||
|
||||||
(strncmp(ipd.id, ISO_STANDARD_ID, sizeof (ipd.id)) != 0) ||
|
(strncmp(ipd.id, ISO_STANDARD_ID, sizeof (ipd.id)) != 0) ||
|
||||||
(ipd.version[0] != 1))
|
(ipd.version[0] != 1)) {
|
||||||
|
printf("Not ISO9660 format\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
block = 16;
|
block = 16;
|
||||||
memcpy(jpd, &ipd, sizeof (ipd));
|
memcpy(jpd, &ipd, sizeof (ipd));
|
||||||
@@ -268,6 +270,7 @@ nextblock:
|
|||||||
|
|
||||||
if (((unsigned char) jpd->type[0] == ISO_VD_END)) {
|
if (((unsigned char) jpd->type[0] == ISO_VD_END)) {
|
||||||
free(jpd);
|
free(jpd);
|
||||||
|
printf("Not ISO9660 Joliet format\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user