mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[SHELL32] Don't try to remove buttons on a nonexisting window
This commit is contained in:
parent
46ea5171bd
commit
a6b8d4f6f0
1 changed files with 3 additions and 2 deletions
|
@ -294,10 +294,11 @@ CMenuToolbarBase::CMenuToolbarBase(CMenuBand *menuBand, BOOL usePager) :
|
|||
|
||||
CMenuToolbarBase::~CMenuToolbarBase()
|
||||
{
|
||||
ClearToolbar();
|
||||
|
||||
if (m_hWnd)
|
||||
{
|
||||
ClearToolbar();
|
||||
DestroyWindow();
|
||||
}
|
||||
|
||||
if (m_pager.m_hWnd)
|
||||
m_pager.DestroyWindow();
|
||||
|
|
Loading…
Reference in a new issue