From 8d6a77d0d0a6d04f3563bcf9177d851934e4442c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Fri, 3 Nov 2023 19:37:23 +0000 Subject: [PATCH] Fix duplicate fclose() --- Src/BMPStream.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/BMPStream.inl b/Src/BMPStream.inl index f544d8e4..1ebcbe1c 100644 --- a/Src/BMPStream.inl +++ b/Src/BMPStream.inl @@ -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 ); }