0032115: Data Exchange, STEP reader - Incorrect full path to file is not caught
[occt.git] / src / StepFile / StepFile_Read.cxx
index 0606831..b2e2a87 100644 (file)
@@ -80,7 +80,7 @@ static Standard_Integer StepFile_Read (const char* theName,
     aStreamPtr = &aFileStream;
   }
 
-  if (aStreamPtr->bad())
+  if (aStreamPtr->fail())
   {
     return -1;
   }
@@ -166,7 +166,7 @@ static Standard_Integer StepFile_Read (const char* theName,
   sout << "      ... Parameters prepared ...\n";
 
 #ifdef CHRONOMESURE
-  c.Show(sout)
+  c.Show(sout);
 #endif
 
   readtool.LoadModel(theStepModel);