Skip to content

Commit a4a3eaa

Browse files
committed
DBG: resolved issue x64dbg#180 (stupid I didn't implement it this way in the first place lol)
1 parent 9060ab2 commit a4a3eaa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

x64_dbg_dbg/simplescript.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,8 @@ static CMDRESULT scriptinternalcmdexec(const char* cmd)
352352
return STATUS_CONTINUE;
353353
}
354354
CMDRESULT res = cmddirectexec(dbggetcommandlist(), command);
355-
if(DbgIsDebugging())
356-
{
357-
while(!waitislocked(WAITID_RUN)) //while not locked (NOTE: possible deadlock)
358-
Sleep(10);
359-
}
355+
while(DbgIsDebugging() && !waitislocked(WAITID_RUN)) //while not locked (NOTE: possible deadlock)
356+
Sleep(10);
360357
return res;
361358
}
362359

0 commit comments

Comments
 (0)