Fixed cross-compilation for Windows.

v0.27.3
Andreas Huggel 17 years ago
parent c852fd9b27
commit 74d246bfc8

@ -335,7 +335,8 @@ namespace Exiv2 {
{ {
std::string name = path + extension(); std::string name = path + extension();
// Todo: Creating a DataBuf here unnecessarily copies the memory // Todo: Creating a DataBuf here unnecessarily copies the memory
return Exiv2::writeFile(DataBuf(pData_, size_), name); DataBuf buf(pData_, size_);
return Exiv2::writeFile(buf, name);
} }
DataBuf PreviewImage::copy() const DataBuf PreviewImage::copy() const

Loading…
Cancel
Save