mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 02:01:50 +08:00
Init Order: call 'mg_InitTimer' before call 'SystemThreads'
This commit is contained in:
@@ -562,6 +562,13 @@ int GUIAPI InitGUI (int args, const char *agr[])
|
||||
|
||||
_is_minigui_running = 1;
|
||||
|
||||
/* init timer for tick counter */
|
||||
step++;
|
||||
if (!mg_InitTimer()) {
|
||||
_ERR_PRINTF ("KERNEL>InitGUI: failed to start time counter\n");
|
||||
goto failure;
|
||||
}
|
||||
|
||||
step++;
|
||||
if (!SystemThreads()) {
|
||||
_ERR_PRINTF ("KERNEL>InitGUI: failed to init system threads!\n");
|
||||
@@ -575,13 +582,6 @@ int GUIAPI InitGUI (int args, const char *agr[])
|
||||
goto failure;
|
||||
}
|
||||
|
||||
/* init timer for tick counter */
|
||||
step++;
|
||||
if (!mg_InitTimer()) {
|
||||
_ERR_PRINTF ("KERNEL>InitGUI: failed to start time counter\n");
|
||||
goto failure;
|
||||
}
|
||||
|
||||
SetKeyboardLayout ("default");
|
||||
|
||||
SetCursor (GetSystemCursor (IDC_ARROW));
|
||||
|
||||
Reference in New Issue
Block a user