gdiplus: Remove some superfluous casts.

This commit is contained in:
Michael Stefaniuc 2008-12-05 07:53:04 +01:00 committed by Alexandre Julliard
parent 4386caa13b
commit 50ff549420
3 changed files with 5 additions and 4 deletions

View file

@ -256,7 +256,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
if(!font)
return InvalidParameter;
hfont = (HFONT)GetCurrentObject(hdc, OBJ_FONT);
hfont = GetCurrentObject(hdc, OBJ_FONT);
if(!hfont)
return GenericError;

View file

@ -370,7 +370,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromResource(HINSTANCE hInstance,
return InvalidParameter;
/* load DIB */
hbm = (HBITMAP)LoadImageW(hInstance,lpBitmapName,IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION);
hbm = LoadImageW(hInstance, lpBitmapName, IMAGE_BITMAP, 0, 0,
LR_CREATEDIBSECTION);
if(hbm){
stat = GdipCreateBitmapFromHBITMAP(hbm, NULL, bitmap);

View file

@ -765,7 +765,7 @@ todo_wine{
}
GdipDeleteRegion(region);
DeleteObject((HGDIOBJ)hrgn);
DeleteObject(hrgn);
/* ellipse */
hrgn = CreateEllipticRgn(0, 0, 100, 10);
@ -791,7 +791,7 @@ todo_wine{
expect_dword(buf + 8, 0x00006000); /* ?? */
}
GdipDeleteRegion(region);
DeleteObject((HGDIOBJ)hrgn);
DeleteObject(hrgn);
}
static void test_gethrgn(void)