mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
DocFormat - fix bug (read unknown record)
This commit is contained in:
@ -74,7 +74,8 @@ namespace DocFileFormat
|
||||
if (pRecord)
|
||||
{
|
||||
result = pRecord->NewObject (reader, size, typeCode, version, instance);
|
||||
result->SiblingIdx = siblingIdx;
|
||||
if (result)
|
||||
result->SiblingIdx = siblingIdx;
|
||||
RELEASEOBJECT(pRecord);
|
||||
}
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ namespace DocFileFormat
|
||||
|
||||
virtual Record* NewObject( IBinaryReader* _reader, unsigned int bodySize, unsigned int typeCode, unsigned int version, unsigned int instance )
|
||||
{
|
||||
return new UnknownRecord( _reader, bodySize, typeCode, version, instance );
|
||||
return NULL;//new UnknownRecord( _reader, bodySize, typeCode, version, instance );
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user