gdi32: There is no need to cast NULL to a function pointer.
Michael Stefaniuc
mstefani at redhat.de
Tue Dec 18 17:26:12 CST 2007
---
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
{
--
1.5.3.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071219/edbbc993/attachment.pgp
More information about the wine-patches
mailing list