DocFormat - fix bug (read unknown record)

This commit is contained in:
ElenaSubbotina
2016-08-11 19:09:57 +03:00
parent 00596f43c6
commit bfdafccc8d
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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 );
}
};
}