|
|
@ -62,13 +62,8 @@ private:
|
|
|
|
// Retrieve an object from the CHM file
|
|
|
|
// Retrieve an object from the CHM file
|
|
|
|
inline size_t RetrieveObject (const chmUnitInfo *ui, unsigned char *buffer, LONGUINT64 fileOffset, LONGINT64 bufferSize)
|
|
|
|
inline size_t RetrieveObject (const chmUnitInfo *ui, unsigned char *buffer, LONGUINT64 fileOffset, LONGINT64 bufferSize)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if USE_BUILTIN_CHMLIB
|
|
|
|
|
|
|
|
return ::chm_retrieve_object(m_chmFile, ui, buffer,
|
|
|
|
|
|
|
|
fileOffset, bufferSize);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui),
|
|
|
|
return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui),
|
|
|
|
buffer, fileOffset, bufferSize);
|
|
|
|
buffer, fileOffset, bufferSize);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// An opened file name, if presend
|
|
|
|
// An opened file name, if presend
|
|
|
|