mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:55: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()
|
CMenuToolbarBase::~CMenuToolbarBase()
|
||||||
{
|
{
|
||||||
ClearToolbar();
|
|
||||||
|
|
||||||
if (m_hWnd)
|
if (m_hWnd)
|
||||||
|
{
|
||||||
|
ClearToolbar();
|
||||||
DestroyWindow();
|
DestroyWindow();
|
||||||
|
}
|
||||||
|
|
||||||
if (m_pager.m_hWnd)
|
if (m_pager.m_hWnd)
|
||||||
m_pager.DestroyWindow();
|
m_pager.DestroyWindow();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue