Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ded5ad8a
Commit
ded5ad8a
authored
Oct 21, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Avoid an empty for loop.
parent
67d452d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dialog.c
programs/wineconsole/dialog.c
+3
-2
No files found.
programs/wineconsole/dialog.c
View file @
ded5ad8a
...
@@ -369,12 +369,13 @@ static int CALLBACK font_enum_size(const LOGFONTW* lf, const TEXTMETRICW* tm,
...
@@ -369,12 +369,13 @@ static int CALLBACK font_enum_size(const LOGFONTW* lf, const TEXTMETRICW* tm,
if
(
WCUSER_ValidateFontMetric
(
di
->
data
,
tm
,
FontType
))
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...
/* 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
* 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
&&
while
(
idx
<
di
->
nFont
&&
tm
->
tmHeight
==
di
->
font
[
idx
].
height
&&
tm
->
tmHeight
==
di
->
font
[
idx
].
height
&&
tm
->
tmWeight
>
di
->
font
[
idx
].
weight
)
tm
->
tmWeight
>
di
->
font
[
idx
].
weight
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment