Commit a70087e1 authored by Oleg Korshul's avatar Oleg Korshul

no base 64 data

parent c3da9a66
......@@ -425,6 +425,8 @@ namespace NSDoctRenderer
NSFile::CFileBinary oFile;
if (true == oFile.CreateFileW(pParams->m_strDstFilePath))
{
if (pNative->m_sHeader.find(";v10;") == std::string::npos)
{
oFile.WriteFile((BYTE*)pNative->m_sHeader.c_str(), (DWORD)pNative->m_sHeader.length());
......@@ -435,6 +437,11 @@ namespace NSDoctRenderer
oFile.WriteFile((BYTE*)pDst64, (DWORD)nDstLen);
RELEASEARRAYOBJECTS(pDst64);
}
else
{
oFile.WriteFile(pData, (DWORD)pNative->m_nSaveBinaryLen);
}
oFile.CloseFile();
}
}
......
......@@ -674,12 +674,20 @@ public:
m_nLen = read_int2(pData, nCur, nLen);
if (nVersion < 10)
{
m_pData = new BYTE[m_nLen];
m_pDataCur = m_pData;
read_base64_2(pData, nCur, nLen);
delete[]pData;
}
else
{
m_nLen = nLen;
m_pData = (BYTE*)pData;
m_pDataCur = m_pData + m_nLen;
}
return nVersion;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment