Commit ded5ad8a authored by Alexandre Julliard's avatar Alexandre Julliard

wineconsole: Avoid an empty for loop.

parent 67d452d8
......@@ -369,12 +369,13 @@ static int CALLBACK font_enum_size(const LOGFONTW* lf, const TEXTMETRICW* tm,
if (WCUSER_ValidateFontMetric(di->data, tm, FontType))
{
int idx;
int idx = 0;
/* we want the string to be sorted with a numeric order, not a lexicographic...
* do the job by hand... get where to insert the new string
*/
for (idx = 0; idx < di->nFont && tm->tmHeight > di->font[idx].height; idx++);
while (idx < di->nFont && tm->tmHeight > di->font[idx].height)
idx++;
while (idx < di->nFont &&
tm->tmHeight == di->font[idx].height &&
tm->tmWeight > di->font[idx].weight)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment