[SHELL32] Fix assertion failure in CMenuToolbars

CORE-17505
This commit is contained in:
Katayama Hirofumi MZ 2022-01-25 11:49:27 +09:00
parent 99a6667bd9
commit 974a0f03df

View file

@ -403,7 +403,9 @@ HRESULT CMenuToolbarBase::CreateToolbar(HWND hwndParent, DWORD dwFlags)
}
// HACK & FIXME: CORE-17505
SubclassWindow(CToolbar::Create(hwndParent, tbStyles, tbExStyles));
HWND toolbar = CToolbar::Create(hwndParent, tbStyles, tbExStyles);
m_hWnd = NULL;
SubclassWindow(toolbar);
SetWindowTheme(m_hWnd, L"", L"");