Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/libefi/efi_console.c
Context not available. | |||||
/* Try to read a key stroke. We wait for one if none is pending. */ | /* Try to read a key stroke. We wait for one if none is pending. */ | ||||
status = conin->ReadKeyStroke(conin, &key); | status = conin->ReadKeyStroke(conin, &key); | ||||
if (status == EFI_NOT_READY) { | while (status == EFI_NOT_READY) { | ||||
BS->WaitForEvent(1, &conin->WaitForKey, &junk); | if (conin->WaitForKey != NULL) | ||||
imp: This check should be against zero since this isn't a bool or even a pointer.
| |||||
Not Done Inline ActionsFrom sys/boot/efi/include/efidef.h : So I should check against NULL. manu: From sys/boot/efi/include/efidef.h :
typedef VOID *EFI_EVENT;
So I should check… | |||||
BS->WaitForEvent(1, &conin->WaitForKey, &junk); | |||||
status = conin->ReadKeyStroke(conin, &key); | status = conin->ReadKeyStroke(conin, &key); | ||||
} | } | ||||
switch (key.ScanCode) { | switch (key.ScanCode) { | ||||
Context not available. |
This check should be against zero since this isn't a bool or even a pointer.