mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[SHELL32] Don't try to remove buttons on a nonexisting window
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user