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
5694825a
Commit
5694825a
authored
Jun 19, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Return copies of fonts from GdipGetFontCollectionFamilyList.
parent
3847c2de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
font.c
dlls/gdiplus/font.c
+19
-4
No files found.
dlls/gdiplus/font.c
View file @
5694825a
...
...
@@ -963,18 +963,33 @@ GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
GpFontFamily
*
gpfamilies
[],
INT
*
numFound
)
{
INT
i
;
GpStatus
stat
=
Ok
;
TRACE
(
"%p, %d, %p, %p
\n
"
,
fontCollection
,
numSought
,
gpfamilies
,
numFound
);
if
(
!
(
fontCollection
&&
gpfamilies
&&
numFound
))
return
InvalidParameter
;
for
(
i
=
0
;
i
<
numSought
&&
i
<
fontCollection
->
count
;
i
++
)
memset
(
gpfamilies
,
0
,
sizeof
(
*
gpfamilies
)
*
numSought
);
for
(
i
=
0
;
i
<
numSought
&&
i
<
fontCollection
->
count
&&
stat
==
Ok
;
i
++
)
{
gpfamilies
[
i
]
=
fontCollection
->
FontFamilies
[
i
]
;
stat
=
GdipCloneFontFamily
(
fontCollection
->
FontFamilies
[
i
],
&
gpfamilies
[
i
])
;
}
*
numFound
=
i
;
return
Ok
;
if
(
stat
==
Ok
)
*
numFound
=
i
;
else
{
int
numToFree
=
i
;
for
(
i
=
0
;
i
<
numToFree
;
i
++
)
{
GdipDeleteFontFamily
(
gpfamilies
[
i
]);
gpfamilies
[
i
]
=
NULL
;
}
}
return
stat
;
}
void
free_installed_fonts
(
void
)
...
...
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