Michael Stefaniuc : gdiplus: Remove superfluous pointer casts.
Alexandre Julliard
julliard at winehq.org
Wed Jan 14 09:03:37 CST 2009
Module: wine
Branch: master
Commit: b53877d92e3d33b60841f6a5585c76165d1f520b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b53877d92e3d33b60841f6a5585c76165d1f520b
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jan 14 09:52:24 2009 +0100
gdiplus: Remove superfluous pointer casts.
---
dlls/gdiplus/graphics.c | 2 +-
dlls/gdiplus/image.c | 2 +-
dlls/gdiplus/tests/image.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index b19c7bb..5193334 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -3229,7 +3229,7 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G
m = *(graphics->worldtrans);
- ret = GdipMultiplyMatrix(&m, (GpMatrix*)matrix, order);
+ ret = GdipMultiplyMatrix(&m, matrix, order);
if(ret == Ok)
*(graphics->worldtrans) = m;
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 0c61056..1fb8824 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -1180,7 +1180,7 @@ static GpStatus encode_image_BMP(LPVOID bitmap_bits, LPBITMAPINFO bitmap_info,
*output = GdipAlloc(*output_size);
- bmp_file_hdr = (BITMAPFILEHEADER*) *output;
+ bmp_file_hdr = *output;
bmp_file_hdr->bfType = BITMAP_FORMAT_BMP;
bmp_file_hdr->bfSize = *output_size;
bmp_file_hdr->bfOffBits =
diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 6000dde..19f0500 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -455,7 +455,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
LogPal = GdipAlloc(sizeof(LOGPALETTE));
ok(LogPal != NULL, "unable to allocate LOGPALETTE\n");
LogPal->palVersion = 0x300;
- hpal = CreatePalette((const LOGPALETTE*) LogPal);
+ hpal = CreatePalette(LogPal);
ok(hpal != NULL, "CreatePalette failed\n");
GdipFree(LogPal);
More information about the wine-cvs
mailing list