Skip to content

Commit dfc7d01

Browse files
committed
Remove unneeded cast in one LoadImageW.
1 parent b32f673 commit dfc7d01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/rostests/apitests/user32/LoadImage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static void test_LoadImage_1bpp(void)
1717

1818
hdc1 = CreateCompatibleDC(NULL);
1919
/* Load bitmap with BITMAPINFOHEADER (40 bytes) */
20-
hBmp1 = (HBITMAP)LoadImageW(GetModuleHandle(NULL), MAKEINTRESOURCEW(201), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
20+
hBmp1 = LoadImageW(GetModuleHandle(NULL), MAKEINTRESOURCEW(201), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
2121
res_obj = SelectObject(hdc1, hBmp1);
2222
if (res_obj == HGDI_ERROR || res_obj == NULL)
2323
{

0 commit comments

Comments
 (0)