mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[NTOS:EX] Only set WakeTimer-related status if timer handle is valid. CORE-18133
Since STATUS_TIMER_RESUME_IGNORED is a success status, we would otherwise go into the success case with a NULL Timer object pointer.
This commit is contained in:
@@ -640,7 +640,10 @@ NtSetTimer(IN HANDLE TimerHandle,
|
||||
* functionality required to support them, make this check dependent
|
||||
* on the actual PM capabilities
|
||||
*/
|
||||
if (WakeTimer) Status = STATUS_TIMER_RESUME_IGNORED;
|
||||
if (NT_SUCCESS(Status) && WakeTimer)
|
||||
{
|
||||
Status = STATUS_TIMER_RESUME_IGNORED;
|
||||
}
|
||||
|
||||
/* Check status */
|
||||
if (NT_SUCCESS(Status))
|
||||
|
||||
Reference in New Issue
Block a user