Rev 515 | Rev 517 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 515 | Rev 516 | ||
---|---|---|---|
Line 221... | Line 221... | ||
221 | 221 | ||
222 | prop->vendorID = kPhotoshopSignature; |
222 | prop->vendorID = kPhotoshopSignature; |
223 | prop->propertyKey = PIComponentProperty; |
223 | prop->propertyKey = PIComponentProperty; |
224 | prop->propertyID = 0; |
224 | prop->propertyID = 0; |
225 | time(&curTime); |
225 | time(&curTime); |
226 | componentVersion = (unsigned long)curTime - 946681200/*01.Jan.2000 00:00:00*/; |
226 | componentVersion = (unsigned long)(curTime - (time_t)946681200)/*01.Jan.2000 00:00:00*/; |
227 | prop->propertyLength = (SPInt32)roundToNext4(strlen(component) + 1 + sizeof(componentVersion)); |
227 | prop->propertyLength = (SPInt32)roundToNext4(strlen(component) + 1 + sizeof(componentVersion)); |
228 | memset(prop->propertyData, 0x00, prop->propertyLength); // fill padding with 00h bytes (cosmetics) |
228 | memset(prop->propertyData, 0x00, prop->propertyLength); // fill padding with 00h bytes (cosmetics) |
229 | memcpy(prop->propertyData, &componentVersion, sizeof(componentVersion)); |
229 | memcpy(prop->propertyData, &componentVersion, sizeof(componentVersion)); |
230 | strcpy((char*)(prop->propertyData+sizeof(componentVersion)), component); |
230 | strcpy((char*)(prop->propertyData+sizeof(componentVersion)), component); |
231 | p += offsetof(PIProperty, propertyData) + prop->propertyLength; // skip past new property record, and any padding |
231 | p += offsetof(PIProperty, propertyData) + prop->propertyLength; // skip past new property record, and any padding |