Commit fd1b466a authored by Erik Hovland's avatar Erik Hovland

Check the return value for potential errors

parent de1d42e6
......@@ -611,7 +611,9 @@ static int UDFScanDir( dvd_reader_t *device, struct AD Dir, char *FileName,
memcpy(FileICB, &tmpICB, sizeof(tmpICB));
found = 1;
UDFMapICB(device, tmpICB, &tmpFiletype, partition, &tmpFile);
if(!UDFMapICB(device, tmpICB, &tmpFiletype, partition, &tmpFile))
return 0;
} else {
if( !strcasecmp( FileName, filename ) ) {
memcpy(FileICB, &tmpICB, sizeof(tmpICB));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment