mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
[SHELL32] Add check to CMenuToolbarBase::ShowDW
This fixes an ATL assert in shell32_apitest:menu
This commit is contained in:
parent
c5158963a3
commit
d0c1df7882
1 changed files with 3 additions and 0 deletions
|
@ -315,6 +315,9 @@ void CMenuToolbarBase::InvalidateDraw()
|
|||
|
||||
HRESULT CMenuToolbarBase::ShowDW(BOOL fShow)
|
||||
{
|
||||
if (m_hWnd == NULL)
|
||||
return S_FALSE;
|
||||
|
||||
ShowWindow(fShow ? SW_SHOW : SW_HIDE);
|
||||
|
||||
// Ensure that the right image list is assigned to the toolbar
|
||||
|
|
Loading…
Reference in a new issue