X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e115e77131d5a7a68d0cfb2fb41fcb98deefdd29..6842d18650b487249b4ae29d0d7e17231b24cde8:/src/common/imagbmp.cpp diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 7b6f02cb3f..52dade70e4 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -401,10 +401,10 @@ bool wxBMPHandler::LoadFile( wxImage *image, wxInputStream& stream, bool WXUNUSE return TRUE; } -bool wxBMPHandler::CanRead( wxInputStream& stream ) +bool wxBMPHandler::DoCanRead( wxInputStream& stream ) { unsigned char hdr[2]; - + stream.Read(&hdr, 2); stream.SeekI(-2, wxFromCurrent); return (hdr[0] == 'B' && hdr[1] == 'M');