]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gdiimage.cpp
Added files for wxNotebook and wxCocoaNSTabView
[wxWidgets.git] / src / msw / gdiimage.cpp
index 126da04b0195a151e12647a11e25b421909ebfbb..26cabaa71c197710b2bb639a90f129f46e1de1a5 100644 (file)
@@ -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) {