mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[ATL] Add NULL-check in CWindowImplBaseT::WindowProc assertions
CORE-17505
This commit is contained in:
parent
9259ded8ae
commit
e076e0576f
1 changed files with 2 additions and 2 deletions
|
@ -1579,8 +1579,8 @@ public:
|
||||||
LONG_PTR saveWindowProc;
|
LONG_PTR saveWindowProc;
|
||||||
|
|
||||||
ATLASSERT(pThis != NULL);
|
ATLASSERT(pThis != NULL);
|
||||||
ATLASSERT((pThis->m_dwState & WINSTATE_DESTROYED) == 0);
|
ATLASSERT(pThis != NULL && (pThis->m_dwState & WINSTATE_DESTROYED) == 0);
|
||||||
ATLASSERT(pThis->m_hWnd != NULL);
|
ATLASSERT(pThis != NULL && pThis->m_hWnd != NULL);
|
||||||
if (pThis == NULL || (pThis->m_dwState & WINSTATE_DESTROYED) != 0 || pThis->m_hWnd == NULL)
|
if (pThis == NULL || (pThis->m_dwState & WINSTATE_DESTROYED) != 0 || pThis->m_hWnd == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue