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:
6bee8fb
)
Add failure check.
author
Filip Navara
<filip.navara@gmail.com>
Wed, 28 Dec 2005 13:27:40 +0000
(13:27 +0000)
committer
Filip Navara
<filip.navara@gmail.com>
Wed, 28 Dec 2005 13:27:40 +0000
(13:27 +0000)
svn path=/trunk/; revision=20393
reactos/lib/user32/windows/bitmap.c
patch
|
blob
|
history
diff --git
a/reactos/lib/user32/windows/bitmap.c
b/reactos/lib/user32/windows/bitmap.c
index
41096af
..
d79281e
100644
(file)
--- a/
reactos/lib/user32/windows/bitmap.c
+++ b/
reactos/lib/user32/windows/bitmap.c
@@
-134,6
+134,8
@@
LoadCursorIconImage(
h2Resource = FindResourceW(hinst, MAKEINTRESOURCEW(id),
Icon ? MAKEINTRESOURCEW(RT_ICON) :
MAKEINTRESOURCEW(RT_CURSOR));
+ if (h2Resource == NULL)
+ return NULL;
hResource = LoadResource(hinst, h2Resource);
if (hResource == NULL)