X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8dcfaa404e23d641505a5754a0f036bea67ff789..ddfca47f05f821f034514bf5d5cf938d80fa2829:/src/common/imagbmp.cpp diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 40520c59b9..71b32dcaef 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -750,7 +750,7 @@ bool wxBMPHandler::DoLoadDib(wxImage * image, int width, int height, image->SetMask(FALSE); - return stream.IsOk(); + return ( stream.LastError() == wxSTREAM_NO_ERROR || stream.LastError() == wxSTREAM_EOF ); } bool wxBMPHandler::LoadDib(wxImage *image, wxInputStream& stream,