user: The LoadImage resource string may be a numeric string.
This commit is contained in:
parent
ee9b656edc
commit
37c68b47f4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue