if (InterlockedExchangeAddSizeT(&WaitBlock->Count, -1))
{
/* We're down to 0 now, so signal the event */
- KeSetEvent(&WaitBlock->RundownEvent, IO_NO_INCREMENT, FALSE);
+ KeSetEvent(&WaitBlock->WakeEvent, IO_NO_INCREMENT, FALSE);
}
}
(LONG)Count)
{
/* We're down to 0 now, so signal the event */
- KeSetEvent(&WaitBlock->RundownEvent, IO_NO_INCREMENT, FALSE);
+ KeSetEvent(&WaitBlock->WakeEvent, IO_NO_INCREMENT, FALSE);
}
}
if (Count || !Event)
{
/* Initialize the event */
- KeInitializeEvent(&WaitBlock.RundownEvent,
+ KeInitializeEvent(&WaitBlock.WakeEvent,
NotificationEvent,
FALSE);
/* Set the pointer */
- Event = &WaitBlock.RundownEvent;
+ Event = &WaitBlock.WakeEvent;
}
/* Set the count */