projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e35bf04
)
InitTimerImpl did not check for NULL pointer when it alloc memory.
author
Magnus Olsen
<magnus@greatlord.com>
Thu, 29 Dec 2005 13:53:35 +0000
(13:53 +0000)
committer
Magnus Olsen
<magnus@greatlord.com>
Thu, 29 Dec 2005 13:53:35 +0000
(13:53 +0000)
svn path=/trunk/; revision=20422
reactos/subsys/win32k/ntuser/timer.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/win32k/ntuser/timer.c
b/reactos/subsys/win32k/ntuser/timer.c
index
2e9d2a4
..
f3f5431
100644
(file)
--- a/
reactos/subsys/win32k/ntuser/timer.c
+++ b/
reactos/subsys/win32k/ntuser/timer.c
@@
-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);