[ATL] Add NULL-check in CWindowImplBaseT::WindowProc assertions

CORE-17505
This commit is contained in:
Katayama Hirofumi MZ 2021-03-11 21:20:40 +09:00
parent 9259ded8ae
commit e076e0576f

View file

@ -1579,8 +1579,8 @@ public:
LONG_PTR saveWindowProc;
ATLASSERT(pThis != NULL);
ATLASSERT((pThis->m_dwState & WINSTATE_DESTROYED) == 0);
ATLASSERT(pThis->m_hWnd != NULL);
ATLASSERT(pThis != NULL && (pThis->m_dwState & WINSTATE_DESTROYED) == 0);
ATLASSERT(pThis != NULL && pThis->m_hWnd != NULL);
if (pThis == NULL || (pThis->m_dwState & WINSTATE_DESTROYED) != 0 || pThis->m_hWnd == NULL)
return 0;