]> git.saurik.com Git - wxWidgets.git/commitdiff
reset m_hDWP to NULL after calling EndDeferWindowPos()
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Jan 2005 12:58:59 +0000 (12:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Jan 2005 12:58:59 +0000 (12:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index e797f3fd618a30f730c240b71a519e8d5f6983fe..706f6740bee4181ec23ac566af8f7179c5a4bb7b 100644 (file)
@@ -2293,8 +2293,11 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
             // then change the positions of all child windows at once
             if ( m_hDWP )
             {
+                HDWP hDWP = (HDWP)m_hDWP;
+                m_hDWP = NULL;
+
                 // put all child controls in place at once now
-                if ( !::EndDeferWindowPos((HDWP)m_hDWP) )
+                if ( !::EndDeferWindowPos(hDWP) )
                 {
                     wxLogLastError(_T("EndDeferWindowPos"));
                 }