mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:55:41 +00:00
Fix some assertions now that they are enabled (#3524)
Fix some assertions, hack out some others (they need more ATL work). CORE-17505
This commit is contained in:
parent
df35c8d05e
commit
1952e5b795
7 changed files with 23 additions and 5 deletions
|
@ -398,7 +398,7 @@ HRESULT CMenuToolbarBase::CreateToolbar(HWND hwndParent, DWORD dwFlags)
|
|||
rc.bottom = 1;
|
||||
}
|
||||
|
||||
SubclassWindow(CToolbar::Create(hwndParent, tbStyles, tbExStyles));
|
||||
CToolbar::Create(hwndParent, tbStyles, tbExStyles);
|
||||
|
||||
SetWindowTheme(m_hWnd, L"", L"");
|
||||
|
||||
|
@ -1163,7 +1163,8 @@ HRESULT CMenuStaticToolbar::SetMenu(
|
|||
m_hwndMenu = hwnd;
|
||||
m_dwMenuFlags = dwFlags;
|
||||
|
||||
ClearToolbar();
|
||||
if (IsWindow())
|
||||
ClearToolbar();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -1408,7 +1409,8 @@ HRESULT CMenuSFToolbar::SetShellFolder(IShellFolder *psf, LPCITEMIDLIST pidlFold
|
|||
m_hKey = hKey;
|
||||
m_dwMenuFlags = dwFlags;
|
||||
|
||||
ClearToolbar();
|
||||
if (IsWindow())
|
||||
ClearToolbar();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue