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>
oldstable
Bruno Jesus 2017-01-27 02:58:06 -02:00 committed by Alexandre Julliard
parent 1798864ee2
commit 5090c22e40
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}