Skip to content

Commit

Permalink
Fix duplicate fclose()
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Nov 3, 2023
1 parent aa36b1e commit 8d6a77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/BMPStream.inl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ inline void BMPGetImageInfo( char* fileName , int& width , int& height , int& ch
bytesPerChannel = 1;
int lineLength = width * channels;
if( lineLength % 4 ) lineLength = (lineLength / 4 + 1) * 4;
if( bmih.biSizeImage!=lineLength*height ){ fclose(fp) ; ERROR_OUT( "Bad bitmap image size" ) , fclose( fp ); };
if( bmih.biSizeImage!=lineLength*height ){ fclose(fp) ; ERROR_OUT( "Bad bitmap image size" ); };
fclose( fp );
}

Expand Down

0 comments on commit 8d6a77d

Please sign in to comment.