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
8b2723d4
Commit
8b2723d4
authored
Oct 02, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Use LONG instead of long.
parent
bd93d0b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
olefont.c
dlls/oleaut32/tests/olefont.c
+8
-8
No files found.
dlls/oleaut32/tests/olefont.c
View file @
8b2723d4
...
@@ -57,9 +57,9 @@ static HRESULT (WINAPI *pOleCreateFontIndirect)(LPFONTDESC,REFIID,LPVOID*);
...
@@ -57,9 +57,9 @@ static HRESULT (WINAPI *pOleCreateFontIndirect)(LPFONTDESC,REFIID,LPVOID*);
/* check that resulting hfont has height hfont_height. */
/* check that resulting hfont has height hfont_height. */
/* Various checks along the way. */
/* Various checks along the way. */
static
void
test_ifont_sizes
(
long
lo_size
,
long
hi_size
,
static
void
test_ifont_sizes
(
LONG
lo_size
,
LONG
hi_size
,
long
ratio_logical
,
long
ratio_himetric
,
LONG
ratio_logical
,
LONG
ratio_himetric
,
long
hfont_height
,
const
char
*
test_name
)
LONG
hfont_height
,
const
char
*
test_name
)
{
{
FONTDESC
fd
;
FONTDESC
fd
;
LPVOID
pvObj
=
NULL
;
LPVOID
pvObj
=
NULL
;
...
@@ -91,8 +91,8 @@ static void test_ifont_sizes(long lo_size, long hi_size,
...
@@ -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
"
,
ok
(
hres
==
S_OK
,
"%s: IFont_get_size returns 0x%08x instead of S_OK.
\n
"
,
test_name
,
hres
);
test_name
,
hres
);
ok
(
S
(
psize
).
Lo
==
lo_size
&&
S
(
psize
).
Hi
==
0
,
ok
(
S
(
psize
).
Lo
==
lo_size
&&
S
(
psize
).
Hi
==
0
,
"%s: get_Size: Lo=%d, Hi=%d; expected Lo=%
ld, Hi=%ld
.
\n
"
,
"%s: get_Size: Lo=%d, Hi=%d; expected Lo=%
d, Hi=0
.
\n
"
,
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
,
0L
);
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
);
/* Change ratio, check size unchanged. Standard is 72, 2540. */
/* Change ratio, check size unchanged. Standard is 72, 2540. */
hres
=
IFont_SetRatio
(
ifnt
,
ratio_logical
,
ratio_himetric
);
hres
=
IFont_SetRatio
(
ifnt
,
ratio_logical
,
ratio_himetric
);
...
@@ -102,8 +102,8 @@ static void test_ifont_sizes(long lo_size, long hi_size,
...
@@ -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
"
,
ok
(
hres
==
S_OK
,
"%s: IFont_get_size returns 0x%08x instead of S_OK.
\n
"
,
test_name
,
hres
);
test_name
,
hres
);
ok
(
S
(
psize
).
Lo
==
lo_size
&&
S
(
psize
).
Hi
==
0
,
ok
(
S
(
psize
).
Lo
==
lo_size
&&
S
(
psize
).
Hi
==
0
,
"%s: gS after SR: Lo=%d, Hi=%d; expected Lo=%
ld, Hi=%ld
.
\n
"
,
"%s: gS after SR: Lo=%d, Hi=%d; expected Lo=%
d, Hi=0
.
\n
"
,
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
,
0L
);
test_name
,
S
(
psize
).
Lo
,
S
(
psize
).
Hi
,
lo_size
);
/* Check hFont size with this ratio. This tests an important */
/* Check hFont size with this ratio. This tests an important */
/* conversion for which MSDN is very wrong. */
/* conversion for which MSDN is very wrong. */
...
@@ -112,7 +112,7 @@ static void test_ifont_sizes(long lo_size, long hi_size,
...
@@ -112,7 +112,7 @@ static void test_ifont_sizes(long lo_size, long hi_size,
test_name
,
hres
);
test_name
,
hres
);
hres
=
GetObject
(
hfont
,
sizeof
(
LOGFONT
),
&
lf
);
hres
=
GetObject
(
hfont
,
sizeof
(
LOGFONT
),
&
lf
);
ok
(
lf
.
lfHeight
==
hfont_height
,
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
);
test_name
,
lf
.
lfHeight
,
hfont_height
);
/* Free IFont. */
/* Free IFont. */
...
...
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