[SHELL32] Enable _DEBUG and fix assertion failures (#4307)

Improve debuggability. Fix "WorkerW" window class conflict.
- Enable _DEBUG macro if debugging, in order to enable ATLASSERT macro.
- Fix assertion failures.
- Add SHCreateDefaultWorkerWindow helper function and CWorkerTraits, then use them.
- Don't create the broker and server windows by themselves, but subclass.
CORE-17505, CORE-13950
This commit is contained in:
Katayama Hirofumi MZ
2022-01-25 03:42:46 +09:00
committed by GitHub
parent a92304fdd4
commit c199edda45
5 changed files with 26 additions and 17 deletions

View File

@@ -1027,7 +1027,8 @@ HRESULT CDefView::FillList()
LRESULT CDefView::OnShowWindow(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
{
m_ListView.UpdateWindow();
if (m_ListView.IsWindow())
m_ListView.UpdateWindow();
bHandled = FALSE;
return 0;
}