- wait until UI init is ready before starting simulation (fixes tool bar and

status bar if running multiple instances of Bochs)
This commit is contained in:
Volker Ruppert 2012-03-03 07:44:53 +00:00
parent 2b4d9a26dc
commit 796754e942

View File

@ -705,8 +705,8 @@ void bx_win32_gui_c::specific_init(int argc, char **argv, unsigned
else
terminateEmul(EXIT_GMH_FAILURE);
// Wait for a window before continuing
if ((stInfo.kill == 0) && (FindWindow(szAppName, NULL) == NULL))
// Wait until UI init is ready before continuing
if ((stInfo.kill == 0) && (stInfo.UIinited == FALSE))
Sleep(500);
// Now set this thread's priority to below normal because this is where