mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
InitTimerImpl did not check for NULL pointer when it alloc memory.
svn path=/trunk/; revision=20422
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user