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