X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7a8c1299b05b34dcc400d597cc4a8cc0e85ac14..e4a8a172020d5e3ee08660420142e702799c7878:/src/msw/dcprint.cpp diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index f93544cc42..f277ca44b8 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -345,7 +345,8 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc, { #if wxUSE_WXDIB wxDIB dib(bmp); - if ( !dib.IsOk() ) + bool ok = dib.IsOk(); + if ( !ok ) return FALSE; DIBSECTION ds;