mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
InitTimerImpl did not check for NULL pointer when it alloc memory.
svn path=/trunk/; revision=20422
This commit is contained in:
parent
e35bf0429c
commit
25dd71d30f
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue