Added handling of return value

This commit is contained in:
Robert Osfield 2016-06-30 11:11:00 +01:00
parent d4475e5b19
commit cd4a51cf67

View File

@ -680,7 +680,10 @@ ReaderWriterSTL::ReaderObject::ReadResult ReaderWriterSTL::BinaryReaderObject::r
bool comesFromMagics = fileComesFromMagics(fp, magicsHeaderColor);
// seek to beginning of facets
::fseek(fp, sizeof_StlHeader, SEEK_SET);
if (::fseek(fp, sizeof_StlHeader, SEEK_SET)!=0)
{
return ReadError;
}
StlFacet facet;
for (unsigned int i = 0; i < _expectNumFacets; ++i)