This fixes a crash in the BMP reader on Windows: RCS file: /cvsroot/osrs/gdal/frmts/bmp/bmpdataset.cpp,v retrieving revision 1.20 diff -w -b -r1.20 bmpdataset.cpp 932c932 < VSIFCloseL( poOpenInfo->fp ); --- > VSIFClose( poOpenInfo->fp ); VSIFClose must be used here, because VSIFOpen was used in GDALOpenInfo (core/gdalopen.cpp) to open the file. -Ben