From 71b5a1734e9aba63c284bdd90838a260e16f5ea1 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 11 Dec 2016 12:42:06 +0100 Subject: [PATCH] Fixed: Compilation --HG-- branch : develop --- code/ryzom/client/src/seven_zip/seven_zip.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ryzom/client/src/seven_zip/seven_zip.cpp b/code/ryzom/client/src/seven_zip/seven_zip.cpp index 0fb18838a..602feffbd 100644 --- a/code/ryzom/client/src/seven_zip/seven_zip.cpp +++ b/code/ryzom/client/src/seven_zip/seven_zip.cpp @@ -295,7 +295,7 @@ bool packLZMA(const std::string &srcFileName, const std::string &lzmaFileName) std::vector outProps(outPropsSize); // compress with best compression and other default settings - sint res = LzmaCompress(outBuffer.get(), &outSize, inBuffer.get(), inSize, outProps.get(), &outPropsSize, 9, 1 << 27, -1, -1, -1, -1, 1); + sint res = LzmaCompress(&outBuffer[0], &outSize, &inBuffer[0], inSize, &outProps[0], &outPropsSize, 9, 1 << 27, -1, -1, -1, -1, 1); switch(res) { @@ -314,14 +314,14 @@ bool packLZMA(const std::string &srcFileName, const std::string &lzmaFileName) try { // write props - outStream.serialBuffer(outProps.get(), (uint)outPropsSize); + outStream.serialBuffer(&outProps[0], (uint)outPropsSize); // write uncompressed size uint64 uncompressSize = inSize; outStream.serial(uncompressSize); // write content - outStream.serialBuffer(outBuffer.get(), (uint)outSize); + outStream.serialBuffer(&outBuffer[0], (uint)outSize); } catch(const EFile &e) {