mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[BROWSEUI] Check if ATL windows are valid, before destroying them
Prevents ATL assertion failure.
This commit is contained in:
parent
40b45515a4
commit
888540c2d3
1 changed files with 3 additions and 3 deletions
|
@ -1584,9 +1584,9 @@ LRESULT CAutoComplete::OnNCDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL
|
|||
m_hwndSizeBox.m_pDropDown = NULL;
|
||||
|
||||
// destroy controls
|
||||
m_hwndList.DestroyWindow();
|
||||
m_hwndScrollBar.DestroyWindow();
|
||||
m_hwndSizeBox.DestroyWindow();
|
||||
if (m_hwndList) m_hwndList.DestroyWindow();
|
||||
if (m_hwndScrollBar) m_hwndScrollBar.DestroyWindow();
|
||||
if (m_hwndSizeBox) m_hwndSizeBox.DestroyWindow();
|
||||
|
||||
// clean up
|
||||
m_hwndCombo = NULL;
|
||||
|
|
Loading…
Reference in a new issue