lib/getchar: Close UEFI timer event on all return paths in pit_sleep_and_quit_on_keypress

This commit is contained in:
Mintsuki
2026-03-06 19:17:55 +01:00
parent b866c3fcad
commit b4064d4a75

View File

@@ -294,6 +294,7 @@ again:
gBS->WaitForEvent(2, events, &which);
if (which == 1) {
gBS->CloseEvent(events[1]);
return 0;
}
@@ -313,6 +314,7 @@ again:
}
if (serial == true && kd.Key.ScanCode == 0x08) {
gBS->CloseEvent(events[1]);
return '\b';
}
@@ -357,6 +359,7 @@ again:
goto again;
}
gBS->CloseEvent(events[1]);
return ret;
}
#endif