X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9542f0a109720cf68646356248828001e46ed415..98840d95db7ab85159dc63d523864b2523d48cae:/src/msw/gdiimage.cpp?ds=sidebyside diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index 126da04b01..26cabaa71c 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -372,7 +372,8 @@ bool wxBMPFileHandler::LoadFile(wxBitmap *bitmap, wxDIB dib(name); - return dib.IsOk() && bitmap->CopyFromDIB(dib); + bool ok = dib.IsOk() && bitmap->CopyFromDIB(dib); + return ok; #else WXHBITMAP hBitmap = (WXHBITMAP)wxLoadBMP(name); if(hBitmap) {