Added handling of return value
This commit is contained in:
parent
d4475e5b19
commit
cd4a51cf67
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user