diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-10-27 11:02:03 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-10-27 11:02:03 (GMT) |
commit | e61f3fb7d57058bbffcea5c63f31863d1345d014 (patch) | |
tree | 8cb898d233bc0dccd67f1b478228c2a6b8a9dbcb /src/exiv2-1-fixes.patch | |
parent | 3ca189e26a87c33966a8ed77792417a868c37005 (diff) | |
download | mxe-e61f3fb7d57058bbffcea5c63f31863d1345d014.zip mxe-e61f3fb7d57058bbffcea5c63f31863d1345d014.tar.gz mxe-e61f3fb7d57058bbffcea5c63f31863d1345d014.tar.bz2 |
bugfix patch for package exiv2
Diffstat (limited to 'src/exiv2-1-fixes.patch')
-rw-r--r-- | src/exiv2-1-fixes.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/exiv2-1-fixes.patch b/src/exiv2-1-fixes.patch new file mode 100644 index 0000000..0cd5ffc --- /dev/null +++ b/src/exiv2-1-fixes.patch @@ -0,0 +1,48 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +This patch has been taken from: +http://dev.exiv2.org/projects/exiv2/repository/revisions/2370 + +--- trunk/src/psdimage.cpp (revision 2369) ++++ trunk/src/psdimage.cpp (revision 2370) +@@ -419,24 +419,24 @@ + uint32_t curOffset = io_->tell(); + + // Write IPTC_NAA resource block +- if ( resourceId == kPhotoshopResourceID_IPTC_NAA +- || (resourceId > kPhotoshopResourceID_IPTC_NAA && iptcDone == false)) { ++ if ((resourceId == kPhotoshopResourceID_IPTC_NAA || ++ resourceId > kPhotoshopResourceID_IPTC_NAA) && iptcDone == false) { + newResLength += writeIptcData(iptcData_, outIo); + resourceSize = (resourceSize + 1) & ~1; // adjust for padding + iptcDone = true; + } + + // Write ExifInfo resource block +- else if ( resourceId == kPhotoshopResourceID_ExifInfo +- || (resourceId > kPhotoshopResourceID_ExifInfo && exifDone == false)) { ++ else if ((resourceId == kPhotoshopResourceID_ExifInfo || ++ resourceId > kPhotoshopResourceID_ExifInfo) && exifDone == false) { + newResLength += writeExifData(exifData_, outIo); + resourceSize = (resourceSize + 1) & ~1; // adjust for padding + exifDone = true; + } + + // Write XMPpacket resource block +- else if ( resourceId == kPhotoshopResourceID_XMPPacket +- || (resourceId > kPhotoshopResourceID_XMPPacket && xmpDone == false)) { ++ else if ((resourceId == kPhotoshopResourceID_XMPPacket || ++ resourceId > kPhotoshopResourceID_XMPPacket) && xmpDone == false) { + newResLength += writeXmpData(xmpData_, outIo); + resourceSize = (resourceSize + 1) & ~1; // adjust for padding + xmpDone = true; +@@ -456,7 +456,7 @@ + us2Data(buf, resourceId, bigEndian); + if (outIo.write(buf, 2) != 2) throw Error(21); + // Write resource name as Pascal string +- buf[0] = resourceNameLength & 0x000f; ++ buf[0] = resourceNameLength & 0x00ff; + if (outIo.write(buf, 1) != 1) throw Error(21); + buf[0] = resourceNameFirstChar; + if (outIo.write(buf, 1) != 1) throw Error(21); |