Module: wine Branch: master Commit: 5090c22e40232fb79a6ef977ce302f42303c77ae URL: http://source.winehq.org/git/wine.git/?a=commit;h=5090c22e40232fb79a6ef977ce...
Author: Bruno Jesus 00cpxxx@gmail.com Date: Fri Jan 27 02:58:06 2017 -0200
d3d8/tests: Fix copy&paste issue in compare_mode (cppcheck).
Signed-off-by: Bruno Jesus 00cpxxx@gmail.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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; }