Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
8b2723d4
Commit
8b2723d4
authored
15 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
oleaut32/tests: Use LONG instead of long.
parent
bd93d0b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/oleaut32/tests/olefont.c
+8
-8
8 additions, 8 deletions
dlls/oleaut32/tests/olefont.c
with
8 additions
and
8 deletions
dlls/oleaut32/tests/olefont.c
+
8
−
8
View file @
8b2723d4
...
...
@@ -57,9 +57,9 @@ static HRESULT (WINAPI *pOleCreateFontIndirect)(LPFONTDESC,REFIID,LPVOID*);
/* check that resulting hfont has height hfont_height. */
/* Various checks along the way. */
static
void
test_ifont_sizes
(
long
lo_size
,
long
hi_size
,
long
ratio_logical
,
long
ratio_himetric
,
long
hfont_height
,
const
char
*
test_name
)
static
void
test_ifont_sizes
(
LONG
lo_size
,
LONG
hi_size
,
LONG
ratio_logical
,
LONG
ratio_himetric
,
LONG
hfont_height
,
const
char
*
test_name
)
{
FONTDESC
fd
;
LPVOID
pvObj
=
NULL
;
...
...
@@ -91,8 +91,8 @@ static void test_ifont_sizes(long lo_size, long hi_size,
ok
(
hres
==
S_OK
,
"%s: IFont_get_size returns 0x%08x instead of S_OK.
\n
"
,
test_name
,
hres
);
ok
(
S
(
psize
).
Lo
==
lo_size
&&
S
(
psize
).
Hi
==
0
,
"%s: get_Size: Lo=%d, Hi=%d; expected Lo=%
l
d, Hi=
%ld
.
\n
"
,
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
,
0L
);
"%s: get_Size: Lo=%d, Hi=%d; expected Lo=%d, Hi=
0
.
\n
"
,
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
);
/* Change ratio, check size unchanged. Standard is 72, 2540. */
hres
=
IFont_SetRatio
(
ifnt
,
ratio_logical
,
ratio_himetric
);
...
...
@@ -102,8 +102,8 @@ static void test_ifont_sizes(long lo_size, long hi_size,
ok
(
hres
==
S_OK
,
"%s: IFont_get_size returns 0x%08x instead of S_OK.
\n
"
,
test_name
,
hres
);
ok
(
S
(
psize
).
Lo
==
lo_size
&&
S
(
psize
).
Hi
==
0
,
"%s: gS after SR: Lo=%d, Hi=%d; expected Lo=%
l
d, Hi=
%ld
.
\n
"
,
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
,
0L
);
"%s: gS after SR: Lo=%d, Hi=%d; expected Lo=%d, Hi=
0
.
\n
"
,
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
);
/* Check hFont size with this ratio. This tests an important */
/* conversion for which MSDN is very wrong. */
...
...
@@ -112,7 +112,7 @@ static void test_ifont_sizes(long lo_size, long hi_size,
test_name
,
hres
);
hres
=
GetObject
(
hfont
,
sizeof
(
LOGFONT
),
&
lf
);
ok
(
lf
.
lfHeight
==
hfont_height
,
"%s: hFont has lf.lfHeight=%d, expected %
l
d.
\n
"
,
"%s: hFont has lf.lfHeight=%d, expected %d.
\n
"
,
test_name
,
lf
.
lfHeight
,
hfont_height
);
/* Free IFont. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment