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
40e1e397
Commit
40e1e397
authored
Oct 01, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make the PS_NULL test pass under Wine.
parent
8c90767c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
pen.c
dlls/gdi32/pen.c
+6
-0
pen.c
dlls/gdi32/tests/pen.c
+0
-2
No files found.
dlls/gdi32/pen.c
View file @
40e1e397
...
...
@@ -80,6 +80,12 @@ HPEN WINAPI CreatePenIndirect( const LOGPEN * pen )
PENOBJ
*
penPtr
;
HPEN
hpen
;
if
(
pen
->
lopnStyle
==
PS_NULL
)
{
hpen
=
GetStockObject
(
NULL_PEN
);
if
(
hpen
)
return
hpen
;
}
if
(
!
(
penPtr
=
GDI_AllocObject
(
sizeof
(
PENOBJ
),
PEN_MAGIC
,
(
HGDIOBJ
*
)
&
hpen
,
&
pen_funcs
)))
return
0
;
if
(
pen
->
lopnStyle
==
PS_USERSTYLE
||
pen
->
lopnStyle
==
PS_ALTERNATE
)
...
...
dlls/gdi32/tests/pen.c
View file @
40e1e397
...
...
@@ -144,7 +144,6 @@ 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
);
...
...
@@ -210,7 +209,6 @@ static void test_logpen(void)
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
...
...
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