diff --git a/reactos/lib/user32/windows/bitmap.c b/reactos/lib/user32/windows/bitmap.c index 41096aff247..d79281ec102 100644 --- 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)