equal
deleted
inserted
replaced
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 } |