equal
deleted
inserted
replaced
1533 if (t -> Data) return; // Already allocated |
1533 if (t -> Data) return; // Already allocated |
1534 |
1534 |
1535 t-> nSamples = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_FIELDS")); |
1535 t-> nSamples = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_FIELDS")); |
1536 t-> nPatches = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_SETS")); |
1536 t-> nPatches = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_SETS")); |
1537 |
1537 |
1538 t-> Data = (char**)AllocChunk (it8, ((cmsUInt32Number) t->nSamples + 1) * ((cmsUInt32Number) t->nPatches + 1) *sizeof (char*)); |
1538 if (t -> nSamples < 0 || t->nSamples > 0x7ffe || t->nPatches < 0 || t->nPatches > 0x7ffe) |
1539 if (t->Data == NULL) { |
1539 { |
1540 |
1540 SynError(it8, "AllocateDataSet: too much data"); |
1541 SynError(it8, "AllocateDataSet: Unable to allocate data array"); |
1541 } |
|
1542 else { |
|
1543 t->Data = (char**)AllocChunk(it8, ((cmsUInt32Number)t->nSamples + 1) * ((cmsUInt32Number)t->nPatches + 1) * sizeof(char*)); |
|
1544 if (t->Data == NULL) { |
|
1545 |
|
1546 SynError(it8, "AllocateDataSet: Unable to allocate data array"); |
|
1547 } |
1542 } |
1548 } |
1543 |
1549 |
1544 } |
1550 } |
1545 |
1551 |
1546 static |
1552 static |