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
830f1563
Commit
830f1563
authored
Sep 29, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a test for PS_NULL pen being equal to NULL_PEN stock object.
parent
2f8830d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
pen.c
dlls/gdi32/tests/pen.c
+7
-1
No files found.
dlls/gdi32/tests/pen.c
View file @
830f1563
...
...
@@ -70,7 +70,7 @@ static void test_logpen(void)
for
(
i
=
0
;
i
<
sizeof
(
pen
)
/
sizeof
(
pen
[
0
]);
i
++
)
{
trace
(
"
testing style %u
\n
"
,
pen
[
i
].
style
);
trace
(
"
%d: testing style %u
\n
"
,
i
,
pen
[
i
].
style
);
/********************** cosmetic pens **********************/
/* CreatePenIndirect behaviour */
...
...
@@ -144,6 +144,8 @@ static void test_logpen(void)
/* for some reason XP differentiates PS_NULL here */
if
(
pen
[
i
].
style
==
PS_NULL
)
{
todo_wine
ok
(
hpen
==
GetStockObject
(
NULL_PEN
),
"hpen should be a stock NULL_PEN
\n
"
);
ok
(
size
==
sizeof
(
EXTLOGPEN
),
"GetObject returned %d, error %d
\n
"
,
size
,
GetLastError
());
ok
(
elp
.
elpPenStyle
==
pen
[
i
].
ret_style
,
"expected %u, got %u
\n
"
,
pen
[
i
].
ret_style
,
elp
.
elpPenStyle
);
ok
(
elp
.
elpWidth
==
0
,
"expected 0, got %u
\n
"
,
elp
.
elpWidth
);
...
...
@@ -206,7 +208,11 @@ static void test_logpen(void)
obj_type
=
GetObjectType
(
hpen
);
/* for some reason XP differentiates PS_NULL here */
if
(
pen
[
i
].
style
==
PS_NULL
)
{
ok
(
obj_type
==
OBJ_PEN
,
"wrong object type %u
\n
"
,
obj_type
);
todo_wine
ok
(
hpen
==
GetStockObject
(
NULL_PEN
),
"hpen should be a stock NULL_PEN
\n
"
);
}
else
ok
(
obj_type
==
OBJ_EXTPEN
,
"wrong object type %u
\n
"
,
obj_type
);
...
...
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