mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 19:53:22 +08:00
[!] fixed: previous revision
git-svn-id: https://pykd.svn.codeplex.com/svn@59902 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
af3e45bae6
commit
0e12bf9fab
@ -241,7 +241,9 @@ HRESULT
|
||||
CALLBACK
|
||||
py( PDEBUG_CLIENT4 client, PCSTR args)
|
||||
{
|
||||
PyThreadState *interpreter = Py_NewInterpreter();
|
||||
|
||||
PyThreadState *globalInterpreter = PyThreadState_Swap( NULL );
|
||||
PyThreadState *localInterpreter = Py_NewInterpreter();
|
||||
|
||||
try {
|
||||
|
||||
@ -351,7 +353,8 @@ py( PDEBUG_CLIENT4 client, PCSTR args)
|
||||
{
|
||||
}
|
||||
|
||||
Py_EndInterpreter( interpreter );
|
||||
Py_EndInterpreter( localInterpreter );
|
||||
PyThreadState_Swap( globalInterpreter );
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user