mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[ATL] CWindowImplBaseT::WindowProc(): Narrow 2 ATLASSERT() down (#3529)
Addendum to e076e05
. CORE-17505
This commit is contained in:
parent
eba68ffb9c
commit
49639c7759
1 changed files with 6 additions and 3 deletions
|
@ -1579,9 +1579,12 @@ public:
|
|||
LONG_PTR saveWindowProc;
|
||||
|
||||
ATLASSERT(pThis != 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)
|
||||
if (pThis == NULL)
|
||||
return 0;
|
||||
|
||||
ATLASSERT((pThis->m_dwState & WINSTATE_DESTROYED) == 0);
|
||||
ATLASSERT(pThis->m_hWnd != NULL);
|
||||
if ((pThis->m_dwState & WINSTATE_DESTROYED) != 0 || pThis->m_hWnd == NULL)
|
||||
return 0;
|
||||
|
||||
hWnd = pThis->m_hWnd;
|
||||
|
|
Loading…
Reference in a new issue