jdk/src/java.desktop/share/native/liblcms/cmsio0.c
changeset 41577 d4852d03014f
parent 40152 35cbab101a76
equal deleted inserted replaced
41576:96d3f5419106 41577:d4852d03014f
  1541 
  1541 
  1542 
  1542 
  1543     // If the element is already in memory, return the pointer
  1543     // If the element is already in memory, return the pointer
  1544     if (Icc -> TagPtrs[n]) {
  1544     if (Icc -> TagPtrs[n]) {
  1545 
  1545 
       
  1546         if (Icc -> TagTypeHandlers[n] == NULL) goto Error;
       
  1547         BaseType = Icc -> TagTypeHandlers[n]->Signature;
       
  1548         if (BaseType == 0) goto Error;
       
  1549         TagDescriptor = _cmsGetTagDescriptor(Icc-> ContextID, sig);
       
  1550         if (TagDescriptor == NULL) goto Error;
       
  1551         if (!IsTypeSupported(TagDescriptor, BaseType)) goto Error;
       
  1552 
  1546         if (Icc ->TagSaveAsRaw[n]) goto Error;  // We don't support read raw tags as cooked
  1553         if (Icc ->TagSaveAsRaw[n]) goto Error;  // We don't support read raw tags as cooked
  1547 
  1554 
  1548         _cmsUnlockMutex(Icc->ContextID, Icc ->UsrMutex);
  1555         _cmsUnlockMutex(Icc->ContextID, Icc ->UsrMutex);
  1549         return Icc -> TagPtrs[n];
  1556         return Icc -> TagPtrs[n];
  1550     }
  1557     }