Commit a548bef8 authored by Jeff Smith's avatar Jeff Smith Committed by Alexandre Julliard

gdiplus/tests: Add test for mask-only icon with GdipCreateBitmapFromHICON.

parent 159e3465
......@@ -1612,6 +1612,19 @@ static void test_fromhicon(void)
GdipDisposeImage((GpImage*)bitmap);
DestroyIcon(hIcon);
/* mask-only icon */
info = iconinfo_base;
info.hbmMask = hbmMask;
hIcon = CreateIconIndirect(&info);
ok(hIcon != 0, "CreateIconIndirect failed\n");
stat = GdipCreateBitmapFromHICON(hIcon, &bitmap);
todo_wine
expect(InvalidParameter, stat);
if (stat == Ok)
GdipDisposeImage((GpImage*)bitmap);
DestroyIcon(hIcon);
DeleteObject(hbmMask);
DeleteObject(hbmColor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment