Commit bfdafccc authored by ElenaSubbotina's avatar ElenaSubbotina

DocFormat - fix bug (read unknown record)

parent 00596f43
......@@ -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 );
}
};
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment