projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bf0b38b
)
Check for failed allocations. Spotted by Martin Bealby.
author
Filip Navara
<filip.navara@gmail.com>
Mon, 12 Dec 2005 20:30:09 +0000
(20:30 +0000)
committer
Filip Navara
<filip.navara@gmail.com>
Mon, 12 Dec 2005 20:30:09 +0000
(20:30 +0000)
svn path=/trunk/; revision=20114
reactos/lib/user32/windows/icon.c
patch
|
blob
|
history
diff --git
a/reactos/lib/user32/windows/icon.c
b/reactos/lib/user32/windows/icon.c
index
03ce2f0
..
28d36ad
100644
(file)
--- a/
reactos/lib/user32/windows/icon.c
+++ b/
reactos/lib/user32/windows/icon.c
@@
-260,6
+260,10
@@
CreateIconFromResourceEx(
/* get an safe copy of the icon data */
SafeIconImage = RtlAllocateHeap(GetProcessHeap(), 0, cbIconBits);
+ if (SafeIconImage == NULL)
+ {
+ return NULL;
+ }
memcpy(SafeIconImage, pbIconBits, cbIconBits);
/* take into acount the origonal height was for both the AND and XOR images */