Add failure check.
Modified: trunk/reactos/lib/user32/windows/bitmap.c

Modified: trunk/reactos/lib/user32/windows/bitmap.c
--- trunk/reactos/lib/user32/windows/bitmap.c	2005-12-28 12:40:17 UTC (rev 20392)
+++ trunk/reactos/lib/user32/windows/bitmap.c	2005-12-28 13:27:40 UTC (rev 20393)
@@ -134,6 +134,8 @@
       h2Resource = FindResourceW(hinst, MAKEINTRESOURCEW(id),
                                  Icon ? MAKEINTRESOURCEW(RT_ICON) :
                                  MAKEINTRESOURCEW(RT_CURSOR));
+      if (h2Resource == NULL)
+         return NULL;
 
       hResource = LoadResource(hinst, h2Resource);
       if (hResource == NULL)