From: Vadim Zeitlin Date: Wed, 12 Jan 2005 12:58:59 +0000 (+0000) Subject: reset m_hDWP to NULL after calling EndDeferWindowPos() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4d03677b9e48e581604511e1a4e2cb16dccb619 reset m_hDWP to NULL after calling EndDeferWindowPos() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index e797f3fd61..706f6740be 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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")); }