Commit 105ba17a authored by SND\EreTIk_cp's avatar SND\EreTIk_cp
Browse files

[~] fix: processing debug events exception

git-svn-id: https://pykd.svn.codeplex.com/svn@69473 9b283d60-5439-405e-af05-b73fd8c4d996
parent e4bbc369
......@@ -25,7 +25,7 @@ setExecutionStatus()
do {
{
PyThread_StateRestore state;
PyThread_StateRestore state(dbgExt->getThreadState());
hres = dbgExt->control->WaitForEvent( 0, INFINITE );
......
......@@ -18,7 +18,7 @@ public:
PyThread_StateSave( PyThreadState **state )
: m_state(NULL)
{
if ( *state != NULL )
if ( *state )
{
m_state = state;
PyEval_RestoreThread( *m_state );
......@@ -26,7 +26,7 @@ public:
}
~PyThread_StateSave() {
if (m_state)
if ( m_state )
*m_state =PyEval_SaveThread();
}
......@@ -49,7 +49,7 @@ public:
}
PyThread_StateRestore( PyThreadState **state ) {
if ( *state != NULL )
if ( *state )
{
m_state = state;
*m_state =PyEval_SaveThread();
......@@ -57,6 +57,7 @@ public:
}
~PyThread_StateRestore() {
if (*m_state)
PyEval_RestoreThread( *m_state );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment