Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
60c1ae0b
Commit
60c1ae0b
authored
Nov 02, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash in font browsing for raster fonts.
parent
4381c625
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
dialog.c
programs/wineconsole/dialog.c
+8
-3
No files found.
programs/wineconsole/dialog.c
View file @
60c1ae0b
...
...
@@ -393,9 +393,14 @@ static int CALLBACK font_enum_size(const LOGFONT* lf, const TEXTMETRIC* tm,
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_LIST_SIZE
,
LB_INSERTSTRING
,
idx
,
(
LPARAM
)
buf
);
/* now grow our arrays and insert the values at the same index than in the list box */
di
->
font
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
di
->
font
,
sizeof
(
*
di
->
font
)
*
(
di
->
nFont
+
1
));
if
(
idx
!=
di
->
nFont
)
memmove
(
&
di
->
font
[
idx
+
1
],
&
di
->
font
[
idx
],
(
di
->
nFont
-
idx
)
*
sizeof
(
*
di
->
font
));
if
(
di
->
nFont
)
{
di
->
font
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
di
->
font
,
sizeof
(
*
di
->
font
)
*
(
di
->
nFont
+
1
));
if
(
idx
!=
di
->
nFont
)
memmove
(
&
di
->
font
[
idx
+
1
],
&
di
->
font
[
idx
],
(
di
->
nFont
-
idx
)
*
sizeof
(
*
di
->
font
));
}
else
di
->
font
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
di
->
font
));
di
->
font
[
idx
].
height
=
tm
->
tmHeight
;
di
->
font
[
idx
].
weight
=
tm
->
tmWeight
;
lstrcpy
(
di
->
font
[
idx
].
faceName
,
lf
->
lfFaceName
);
...
...
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