X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994a3786b974a2c5b8dfce631193ae0031e7da3f..c3f64df223f87ef094ee81577a0334905855d14d:/src/msw/dcclient.cpp 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;