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()
|
void scriptabort()
|
||||||
{
|
{
|
||||||
if(bIsRunning)
|
if(bIsRunning)
|
||||||
|
{
|
||||||
bAbort=true;
|
bAbort=true;
|
||||||
|
while(bIsRunning)
|
||||||
|
Sleep(1);
|
||||||
|
}
|
||||||
else //reset the script
|
else //reset the script
|
||||||
scriptsetip(0);
|
scriptsetip(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,6 +253,7 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
|
||||||
extern "C" DLL_EXPORT void _dbg_dbgexitsignal()
|
extern "C" DLL_EXPORT void _dbg_dbgexitsignal()
|
||||||
{
|
{
|
||||||
cbStopDebug(0, 0);
|
cbStopDebug(0, 0);
|
||||||
|
scriptabort();
|
||||||
wait(WAITID_STOP); //after this, debugging stopped
|
wait(WAITID_STOP); //after this, debugging stopped
|
||||||
pluginunload();
|
pluginunload();
|
||||||
TerminateThread(hCommandLoopThread, 0);
|
TerminateThread(hCommandLoopThread, 0);
|
||||||
|
|
Loading…
Reference in New Issue