DBG: fixed a potential bug with running a script and then exiting x64_dbg
This commit is contained in:
parent
6d09617554
commit
b4df671222
|
@ -599,7 +599,11 @@ bool scriptcmdexec(const char* command)
|
|||
void scriptabort()
|
||||
{
|
||||
if(bIsRunning)
|
||||
{
|
||||
bAbort=true;
|
||||
while(bIsRunning)
|
||||
Sleep(1);
|
||||
}
|
||||
else //reset the script
|
||||
scriptsetip(0);
|
||||
}
|
||||
|
|
|
@ -253,6 +253,7 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
|
|||
extern "C" DLL_EXPORT void _dbg_dbgexitsignal()
|
||||
{
|
||||
cbStopDebug(0, 0);
|
||||
scriptabort();
|
||||
wait(WAITID_STOP); //after this, debugging stopped
|
||||
pluginunload();
|
||||
TerminateThread(hCommandLoopThread, 0);
|
||||
|
|
Loading…
Reference in New Issue