Skip to content

Commit

Permalink
Merge pull request ajkhoury#41 from Javivi/fix-deleteclass-assert
Browse files Browse the repository at this point in the history
Check if m_pChildClassFrame is a window before sending a msg
  • Loading branch information
ajkhoury authored Feb 26, 2018
2 parents 99d7df1 + da52b2d commit f23b38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReClass/ReClassEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ void CReClassExApp::DeleteClass( CNodeClass* pClass )
{
PrintOut( _T( "DeleteClass(\"%s\") called" ), pClass->GetName( ).GetString( ) );

if (pClass->m_pChildClassFrame != NULL)
if (pClass->m_pChildClassFrame != NULL && ::IsWindow(pClass->m_pChildClassFrame->GetSafeHwnd()))
{
pClass->m_pChildClassFrame->SendMessage( WM_CLOSE, 0, 0 );
pClass->m_pChildClassFrame = NULL;
Expand Down

0 comments on commit f23b38b

Please sign in to comment.