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
148f184c
Commit
148f184c
authored
Jul 03, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: test_getgenerics: Don't use a pointer-to-pointer construct.
parent
45ee7577
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
font.c
dlls/gdiplus/tests/font.c
+10
-14
No files found.
dlls/gdiplus/tests/font.c
View file @
148f184c
...
...
@@ -187,42 +187,38 @@ static void test_fontfamily (void)
static
void
test_getgenerics
(
void
)
{
GpStatus
stat
;
GpFontFamily
*
*
family
;
GpFontFamily
*
family
;
WCHAR
familyName
[
LF_FACESIZE
];
ZeroMemory
(
familyName
,
sizeof
(
familyName
)
/
sizeof
(
WCHAR
));
family
=
GdipAlloc
(
sizeof
(
GpFontFamily
*
));
stat
=
GdipGetGenericFontFamilySansSerif
(
family
);
stat
=
GdipGetGenericFontFamilySansSerif
(
&
family
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
*
family
,
familyName
,
LANG_NEUTRAL
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
ok
((
lstrcmpiW
(
familyName
,
MicrosoftSansSerif
)
==
0
)
||
(
lstrcmpiW
(
familyName
,
MSSansSerif
)
==
0
),
"Expected Microsoft Sans Serif or MS Sans Serif, got %s
\n
"
,
debugstr_w
(
familyName
));
stat
=
GdipDeleteFontFamily
(
*
family
);
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
stat
=
GdipGetGenericFontFamilySerif
(
family
);
stat
=
GdipGetGenericFontFamilySerif
(
&
family
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
*
family
,
familyName
,
LANG_NEUTRAL
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
ok
(
lstrcmpiW
(
familyName
,
TimesNewRoman
)
==
0
,
"Expected Times New Roman, got %s
\n
"
,
debugstr_w
(
familyName
));
stat
=
GdipDeleteFontFamily
(
*
family
);
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
stat
=
GdipGetGenericFontFamilyMonospace
(
family
);
stat
=
GdipGetGenericFontFamilyMonospace
(
&
family
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
*
family
,
familyName
,
LANG_NEUTRAL
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
ok
(
lstrcmpiW
(
familyName
,
CourierNew
)
==
0
,
"Expected Courier New, got %s
\n
"
,
debugstr_w
(
familyName
));
stat
=
GdipDeleteFontFamily
(
*
family
);
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
GdipFree
(
family
);
}
START_TEST
(
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