1
0
Fork 0

DBG: process gui events in the _plugin_waituntilpaused() function to prevent abusers of the GUI thread freezing everything

This commit is contained in:
mrexodia 2016-10-29 18:44:33 +02:00
parent 26959881de
commit 73c3628d62
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 3 additions and 0 deletions

View File

@ -106,7 +106,10 @@ PLUG_IMPEXP void _plugin_startscript(CBPLUGINSCRIPT cbScript)
PLUG_IMPEXP bool _plugin_waituntilpaused()
{
while(DbgIsDebugging() && dbgisrunning()) //wait until the debugger paused
{
Sleep(1);
GuiProcessEvents();
}
return DbgIsDebugging();
}