DBG: process gui events in the _plugin_waituntilpaused() function to prevent abusers of the GUI thread freezing everything
This commit is contained in:
parent
26959881de
commit
73c3628d62
|
@ -106,7 +106,10 @@ PLUG_IMPEXP void _plugin_startscript(CBPLUGINSCRIPT cbScript)
|
||||||
PLUG_IMPEXP bool _plugin_waituntilpaused()
|
PLUG_IMPEXP bool _plugin_waituntilpaused()
|
||||||
{
|
{
|
||||||
while(DbgIsDebugging() && dbgisrunning()) //wait until the debugger paused
|
while(DbgIsDebugging() && dbgisrunning()) //wait until the debugger paused
|
||||||
|
{
|
||||||
Sleep(1);
|
Sleep(1);
|
||||||
|
GuiProcessEvents();
|
||||||
|
}
|
||||||
return DbgIsDebugging();
|
return DbgIsDebugging();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue