Added handling of return value

This commit is contained in:
Robert Osfield 2016-06-30 11:12:45 +01:00
parent cd4a51cf67
commit 1b409fff8b

View File

@ -407,7 +407,10 @@ bool fileComesFromMagics(FILE *fp, osg::Vec4& magicsColor)
size_t bytes_read = fread((void*) &header, sizeof(header), 1, fp);
if (bytes_read!=sizeof(header)) return false;
::fseek(fp, sizeof_StlHeader, SEEK_SET);
if (::fseek(fp, sizeof_StlHeader, SEEK_SET)!=0)
{
return false;
}
std::string magicsColorPattern ("COLOR=");
std::string headerStr = std::string(header);