Expanded support for the HWPML format

This commit is contained in:
Kirill Polyakov
2025-09-18 12:42:52 +03:00
parent 51de435393
commit 842a44ccf9
42 changed files with 456 additions and 230 deletions

View File

@ -55,7 +55,10 @@ namespace SVG
std::wstring wsImageData = m_wsHref.substr(unType + 8, m_wsHref.length() - unType - 8);
ulSize = NSBase64::Base64DecodeGetRequiredLength(wsImageData.length());
pBuffer = new BYTE[ulSize];
pBuffer = new(std::nothrow) BYTE[ulSize];
if (NULL == pBuffer)
return false;
NSBase64::Base64Decode(wsImageData.c_str(), wsImageData.length(), pBuffer, &(int&)ulSize);
}