projects
/
wine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2353c6a
)
fix tautological enum compare warnings when built with clang 9
author
Gianfranco Costamagna
<locutusofborg@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000
(
01:44
+0100)
committer
Michael Gilbert
<mgilbert@debian.org>
Wed, 6 Jul 2022 00:44:32 +0000
(
01:44
+0100)
Forwarded: pending
Last-Update: 2019-12-31
Gbp-Pq: Topic arm64
Gbp-Pq: Name tautological-compare.patch
dlls/gdiplus/graphics.c
patch
|
blob
|
history
diff --git
a/dlls/gdiplus/graphics.c
b/dlls/gdiplus/graphics.c
index 65cdf96510d90d9e0d3e0042d75ea9c36ff9e485..1684b1ce3c500f5cf3582516b77b593c0e937185 100644
(file)
--- a/
dlls/gdiplus/graphics.c
+++ b/
dlls/gdiplus/graphics.c
@@
-6972,8
+6972,8
@@
GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace
GpCoordinateSpace src_space, GpPointF *points, INT count)
{
if(!graphics || !points || count <= 0 ||
- dst_space
< 0 || dst_space
> CoordinateSpaceDevice ||
- src_space
< 0 || src_space
> CoordinateSpaceDevice)
+ dst_space > CoordinateSpaceDevice ||
+ src_space > CoordinateSpaceDevice)
return InvalidParameter;
if(graphics->busy)