[PATCH] d3d8/tests: Fix copy&paste issue in compare_mode (cppcheck)
Bruno Jesus
00cpxxx at gmail.com
Thu Jan 26 22:58:06 CST 2017
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
dlls/d3d8/tests/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 28c6af3..87d2433 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1281,7 +1281,7 @@ static int compare_mode(const void *a, const void *b)
const struct mode *mode_a = a;
const struct mode *mode_b = b;
unsigned int w = mode_a->w - mode_b->w;
- unsigned int h = mode_b->h - mode_b->h;
+ unsigned int h = mode_a->h - mode_b->h;
return abs(w) >= abs(h) ? -w : -h;
}
--
2.9.3
More information about the wine-patches
mailing list