diff options
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Event/Timer.c')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Event/Timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Event/Timer.c b/MdeModulePkg/Core/Dxe/Event/Timer.c index eefd5a7..d0ca1fc 100644 --- a/MdeModulePkg/Core/Dxe/Event/Timer.c +++ b/MdeModulePkg/Core/Dxe/Event/Timer.c @@ -260,7 +260,7 @@ CoreSetTimer ( return EFI_INVALID_PARAMETER;
}
- if (Type < 0 || Type > TimerRelative || !(Event->Type & EVT_TIMER)) {
+ if (Type < 0 || Type > TimerRelative || (Event->Type & EVT_TIMER) == 0) {
return EFI_INVALID_PARAMETER;
}
|