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
1db48180
Commit
1db48180
authored
Feb 01, 2006
by
Phil Krylov
Committed by
Alexandre Julliard
Feb 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fixed font cache corruption.
parent
ef4fc8fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
style.c
dlls/riched20/style.c
+2
-2
No files found.
dlls/riched20/style.c
View file @
1db48180
...
@@ -317,7 +317,7 @@ HFONT ME_SelectStyleFont(ME_TextEditor *editor, HDC hDC, ME_Style *s)
...
@@ -317,7 +317,7 @@ HFONT ME_SelectStyleFont(ME_TextEditor *editor, HDC hDC, ME_Style *s)
if
(
item
->
nAge
>
nAge
)
if
(
item
->
nAge
>
nAge
)
nEmpty
=
i
,
nAge
=
item
->
nAge
;
nEmpty
=
i
,
nAge
=
item
->
nAge
;
}
}
if
(
ME_IsFontEqual
(
&
item
->
lfSpecs
,
&
lf
))
if
(
item
->
hFont
&&
ME_IsFontEqual
(
&
item
->
lfSpecs
,
&
lf
))
break
;
break
;
}
}
if
(
i
<
HFONT_CACHE_SIZE
)
/* found */
if
(
i
<
HFONT_CACHE_SIZE
)
/* found */
...
@@ -372,7 +372,7 @@ void ME_UnselectStyleFont(ME_TextEditor *editor, HDC hDC, ME_Style *s, HFONT hOl
...
@@ -372,7 +372,7 @@ void ME_UnselectStyleFont(ME_TextEditor *editor, HDC hDC, ME_Style *s, HFONT hOl
assert
(
0
==
"UnselectStyleFont without SelectStyleFont"
);
assert
(
0
==
"UnselectStyleFont without SelectStyleFont"
);
}
}
void
ME_DestroyStyle
(
ME_Style
*
s
)
{
static
void
ME_DestroyStyle
(
ME_Style
*
s
)
{
if
(
s
->
hFont
)
if
(
s
->
hFont
)
{
{
DeleteObject
(
s
->
hFont
);
DeleteObject
(
s
->
hFont
);
...
...
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