InitTimerImpl did not check for NULL pointer when it alloc memory.

svn path=/trunk/; revision=20422
This commit is contained in:
Magnus Olsen 2005-12-29 13:53:35 +00:00
parent e35bf0429c
commit 25dd71d30f

View file

@ -181,8 +181,13 @@ InitTimerImpl(VOID)
ExInitializeFastMutex(&Mutex);
BitmapBytes = ROUND_UP(NUM_WINDOW_LESS_TIMERS, sizeof(ULONG) * 8) / 8;
BitmapBytes = ROUND_UP(NUM_WINDOW_LESS_TIMERS, sizeof(ULONG) * 8) / 8;
WindowLessTimersBitMapBuffer = ExAllocatePoolWithTag(PagedPool, BitmapBytes, TAG_TIMERBMP);
if (WindowLessTimersBitMapBuffer == NULL)
{
return STATUS_UNSUCCESSFUL;
}
RtlInitializeBitMap(&WindowLessTimersBitMap,
WindowLessTimersBitMapBuffer,
BitmapBytes * 8);