Jeff Smith : gdiplus/tests: Add test for mask-only icon with GdipCreateBitmapFromHICON.
Module: wine Branch: master Commit: a548bef8d0732839d051ae9713bfa034884126f5 URL: https://gitlab.winehq.org/wine/wine/-/commit/a548bef8d0732839d051ae9713bfa03... Author: Jeff Smith <whydoubt(a)gmail.com> Date: Fri Aug 18 21:24:34 2023 -0500 gdiplus/tests: Add test for mask-only icon with GdipCreateBitmapFromHICON. --- dlls/gdiplus/tests/image.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index cd9634a6e2a..b0a17217366 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -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);
participants (1)
-
Alexandre Julliard