X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994a3786b974a2c5b8dfce631193ae0031e7da3f..5aab763c09c663ab5e5b92e533ca025e811f1bcf:/src/msw/dcclient.cpp?ds=sidebyside diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 720398ea5d..687253ddc8 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -276,9 +276,10 @@ wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const size_t nCache = ms_cache.GetCount(); for ( size_t n = 0; n < nCache; n++ ) { - info = &ms_cache[n]; - if ( info->hwnd == m_canvas->GetHWND() ) + wxPaintDCInfo *info1 = &ms_cache[n]; + if ( info1->hwnd == m_canvas->GetHWND() ) { + info = info1; if ( index ) *index = n; break;