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
7f16f21c
Commit
7f16f21c
authored
Mar 06, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add an extensive EnumFontFamilies test, fix some failures when running under Wine.
parent
7b0cde8f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
font.c
dlls/gdi32/font.c
+15
-3
font.c
dlls/gdi32/tests/font.c
+0
-0
No files found.
dlls/gdi32/font.c
View file @
7f16f21c
...
...
@@ -877,7 +877,11 @@ INT16 WINAPI EnumFontFamilies16( HDC16 hDC, LPCSTR lpFamily,
LOGFONT16
lf
;
lf
.
lfCharSet
=
DEFAULT_CHARSET
;
if
(
lpFamily
)
lstrcpynA
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
if
(
lpFamily
)
{
if
(
!*
lpFamily
)
return
1
;
lstrcpynA
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
}
else
lf
.
lfFaceName
[
0
]
=
'\0'
;
return
EnumFontFamiliesEx16
(
hDC
,
&
lf
,
efproc
,
lpData
,
0
);
...
...
@@ -892,7 +896,11 @@ INT WINAPI EnumFontFamiliesA( HDC hDC, LPCSTR lpFamily,
LOGFONTA
lf
;
lf
.
lfCharSet
=
DEFAULT_CHARSET
;
if
(
lpFamily
)
lstrcpynA
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
if
(
lpFamily
)
{
if
(
!*
lpFamily
)
return
1
;
lstrcpynA
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
}
else
lf
.
lfFaceName
[
0
]
=
lf
.
lfFaceName
[
1
]
=
'\0'
;
return
EnumFontFamiliesExA
(
hDC
,
&
lf
,
efproc
,
lpData
,
0
);
...
...
@@ -907,7 +915,11 @@ INT WINAPI EnumFontFamiliesW( HDC hDC, LPCWSTR lpFamily,
LOGFONTW
lf
;
lf
.
lfCharSet
=
DEFAULT_CHARSET
;
if
(
lpFamily
)
lstrcpynW
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
if
(
lpFamily
)
{
if
(
!*
lpFamily
)
return
1
;
lstrcpynW
(
lf
.
lfFaceName
,
lpFamily
,
LF_FACESIZE
);
}
else
lf
.
lfFaceName
[
0
]
=
0
;
return
EnumFontFamiliesExW
(
hDC
,
&
lf
,
efproc
,
lpData
,
0
);
...
...
dlls/gdi32/tests/font.c
View file @
7f16f21c
This diff is collapsed.
Click to expand it.
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