Michael Stefaniuc : gdi32: There is no need to cast NULL to a function pointer.
Alexandre Julliard
julliard at winehq.org
Wed Dec 19 06:58:22 CST 2007
Module: wine
Branch: master
Commit: 6b21feaec3e5b39608fa0bdd0bab9d0ab11737b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b21feaec3e5b39608fa0bdd0bab9d0ab11737b7
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Dec 19 00:26:12 2007 +0100
gdi32: There is no need to cast NULL to a function pointer.
---
dlls/gdi32/region.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/gdi32/region.c b/dlls/gdi32/region.c
index 0fe94cb..b06727d 100644
--- a/dlls/gdi32/region.c
+++ b/dlls/gdi32/region.c
@@ -1683,7 +1683,7 @@ static void REGION_RegionOp(
top = max(r1->top,ybot);
bot = min(r1->bottom,r2->top);
- if ((top != bot) && (nonOverlap1Func != (void (*)())NULL))
+ if ((top != bot) && (nonOverlap1Func != NULL))
{
(* nonOverlap1Func) (newReg, r1, r1BandEnd, top, bot);
}
@@ -1695,7 +1695,7 @@ static void REGION_RegionOp(
top = max(r2->top,ybot);
bot = min(r2->bottom,r1->top);
- if ((top != bot) && (nonOverlap2Func != (void (*)())NULL))
+ if ((top != bot) && (nonOverlap2Func != NULL))
{
(* nonOverlap2Func) (newReg, r2, r2BandEnd, top, bot);
}
@@ -1755,7 +1755,7 @@ static void REGION_RegionOp(
curBand = newReg->numRects;
if (r1 != r1End)
{
- if (nonOverlap1Func != (void (*)())NULL)
+ if (nonOverlap1Func != NULL)
{
do
{
@@ -1770,7 +1770,7 @@ static void REGION_RegionOp(
} while (r1 != r1End);
}
}
- else if ((r2 != r2End) && (nonOverlap2Func != (void (*)())NULL))
+ else if ((r2 != r2End) && (nonOverlap2Func != NULL))
{
do
{
More information about the wine-cvs
mailing list