diff --git a/dlls/user/cursoricon.c b/dlls/user/cursoricon.c index 038f4570b45..c09305165bc 100644 --- a/dlls/user/cursoricon.c +++ b/dlls/user/cursoricon.c @@ -2114,7 +2114,6 @@ static HBITMAP BITMAP_Load( HINSTANCE instance, LPCWSTR name, if (!instance) { /* OEM bitmap: try to load the resource from user32.dll */ - if (HIWORD(name)) return 0; instance = user32_module; } diff --git a/dlls/user/tests/resource.c b/dlls/user/tests/resource.c index 893d52ed11c..c9102537cb6 100644 --- a/dlls/user/tests/resource.c +++ b/dlls/user/tests/resource.c @@ -283,6 +283,18 @@ static void test_PrivateExtractIcons(void) { ok(cIcons == 4, "Three icons requested, four expected, got cIcons=%d\n", cIcons); } +static void test_LoadImage(void) { + HBITMAP bmp; + + bmp = LoadBitmapA(NULL, MAKEINTRESOURCE(OBM_CHECK)); + ok(bmp != NULL, "Could not load the OBM_CHECK bitmap"); + if (bmp) DeleteObject(bmp); + + bmp = LoadBitmapA(NULL, "#32760"); /* Value of OBM_CHECK */ + ok(bmp != NULL, "Could not load the OBM_CHECK bitmap"); + if (bmp) DeleteObject(bmp); +} + START_TEST(resource) { init_function_pointers(); @@ -290,4 +302,5 @@ START_TEST(resource) test_accel1(); test_accel2(); test_PrivateExtractIcons(); + test_LoadImage(); }