Fix bug 74424

LoadFromMemory memory is copied
MergePages memory is either taken or freed
This commit is contained in:
Svetlana Kulikova
2025-06-02 12:45:35 +03:00
parent 00a82a7693
commit 10e6664313
12 changed files with 78 additions and 63 deletions

View File

@ -77,6 +77,7 @@ public:
int GetMaxRefID();
int GetNumPages();
bool ValidMetaData();
// Захватывает полученную память malloc data
bool MergePages(BYTE* pData, DWORD nLength, const std::wstring& wsPassword = L"", int nMaxID = 0, const std::string& sPrefixForm = "");
bool MergePages(const std::wstring& wsFile, const std::wstring& wsPassword = L"", int nMaxID = 0, const std::string& sPrefixForm = "");
bool UnmergePages();