mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:45:53 +00:00
Add failure check.
svn path=/trunk/; revision=20393
This commit is contained in:
parent
6bee8fb5cc
commit
83ee9cec35
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ LoadCursorIconImage(
|
||||||
h2Resource = FindResourceW(hinst, MAKEINTRESOURCEW(id),
|
h2Resource = FindResourceW(hinst, MAKEINTRESOURCEW(id),
|
||||||
Icon ? MAKEINTRESOURCEW(RT_ICON) :
|
Icon ? MAKEINTRESOURCEW(RT_ICON) :
|
||||||
MAKEINTRESOURCEW(RT_CURSOR));
|
MAKEINTRESOURCEW(RT_CURSOR));
|
||||||
|
if (h2Resource == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
hResource = LoadResource(hinst, h2Resource);
|
hResource = LoadResource(hinst, h2Resource);
|
||||||
if (hResource == NULL)
|
if (hResource == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue