[SHELL32] Enable _DEBUG and fix assertion failures (#4307)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 24 Jan 2022 18:42:46 +0000 (03:42 +0900)
committerGitHub <noreply@github.com>
Mon, 24 Jan 2022 18:42:46 +0000 (03:42 +0900)
commitc199edda45cdc4b228847a2b02e06326c37f3c2b
treeb556b794a230eac6c7e25d015ca683b679fe7a64
parenta92304fdd46fd590f563ad3c98bb6cea73153cce
[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
dll/win32/shell32/CDefView.cpp
dll/win32/shell32/changenotify.cpp
dll/win32/shell32/precomp.h
dll/win32/shell32/shelldesktop/CChangeNotifyServer.cpp
dll/win32/shell32/shelldesktop/CChangeNotifyServer.h