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
0072188b
Commit
0072188b
authored
Sep 25, 2015
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10/tests: Catch case where enumerated font name is too long.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
parent
5b33f18c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
usp10.c
dlls/usp10/tests/usp10.c
+10
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
0072188b
...
...
@@ -1993,6 +1993,11 @@ static void test_ScriptGetFontProperties(HDC hdc)
for
(
i
=
0
;
i
<
efnd
.
total
;
i
++
)
{
if
(
strlen
((
char
*
)
efnd
.
elf
[
i
].
elfFullName
)
>=
LF_FACESIZE
)
{
trace
(
"Font name to long to test: %s
\n
"
,(
char
*
)
efnd
.
elf
[
i
].
elfFullName
);
continue
;
}
lstrcpyA
(
lf
.
lfFaceName
,
(
char
*
)
efnd
.
elf
[
i
].
elfFullName
);
font
=
CreateFontIndirectA
(
&
lf
);
oldfont
=
SelectObject
(
hdc
,
font
);
...
...
@@ -2034,6 +2039,11 @@ static void test_ScriptGetFontProperties(HDC hdc)
for
(
i
=
0
;
i
<
efnd
.
total
;
i
++
)
{
if
(
strlen
((
char
*
)
efnd
.
elf
[
i
].
elfFullName
)
>=
LF_FACESIZE
)
{
trace
(
"Font name to long to test: %s
\n
"
,(
char
*
)
efnd
.
elf
[
i
].
elfFullName
);
continue
;
}
lstrcpyA
(
lf
.
lfFaceName
,
(
char
*
)
efnd
.
elf
[
i
].
elfFullName
);
font
=
CreateFontIndirectA
(
&
lf
);
oldfont
=
SelectObject
(
hdc
,
font
);
...
...
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