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
c5807283
Commit
c5807283
authored
Oct 16, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix GDI object tests compilation with __WINESRC__ defined.
parent
85b42085
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gdiobj.c
dlls/gdi32/tests/gdiobj.c
+6
-6
No files found.
dlls/gdi32/tests/gdiobj.c
View file @
c5807283
...
...
@@ -121,7 +121,7 @@ static DWORD WINAPI thread_proc(void *param)
DWORD
status
;
struct
hgdiobj_event
*
hgdiobj_event
=
param
;
hgdiobj_event
->
hdc
=
CreateDC
(
"display"
,
NULL
,
NULL
,
NULL
);
hgdiobj_event
->
hdc
=
CreateDC
A
(
"display"
,
NULL
,
NULL
,
NULL
);
ok
(
hgdiobj_event
->
hdc
!=
NULL
,
"CreateDC error %u
\n
"
,
GetLastError
());
hgdiobj_event
->
hgdiobj1
=
CreatePen
(
PS_DASHDOTDOT
,
17
,
RGB
(
1
,
2
,
3
));
...
...
@@ -134,7 +134,7 @@ static DWORD WINAPI thread_proc(void *param)
status
=
WaitForSingleObject
(
hgdiobj_event
->
stop_event
,
INFINITE
);
ok
(
status
==
WAIT_OBJECT_0
,
"WaitForSingleObject error %u
\n
"
,
GetLastError
());
ok
(
!
GetObject
(
hgdiobj_event
->
hgdiobj1
,
sizeof
(
lp
),
&
lp
),
"GetObject should fail
\n
"
);
ok
(
!
GetObject
A
(
hgdiobj_event
->
hgdiobj1
,
sizeof
(
lp
),
&
lp
),
"GetObject should fail
\n
"
);
ok
(
!
GetDeviceCaps
(
hgdiobj_event
->
hdc
,
TECHNOLOGY
),
"GetDeviceCaps(TECHNOLOGY) should fail
\n
"
);
...
...
@@ -151,9 +151,9 @@ static void test_thread_objects(void)
DWORD
status
;
BOOL
bRet
;
hgdiobj_event
.
stop_event
=
CreateEvent
(
NULL
,
0
,
0
,
NULL
);
hgdiobj_event
.
stop_event
=
CreateEvent
A
(
NULL
,
0
,
0
,
NULL
);
ok
(
hgdiobj_event
.
stop_event
!=
NULL
,
"CreateEvent error %u
\n
"
,
GetLastError
());
hgdiobj_event
.
ready_event
=
CreateEvent
(
NULL
,
0
,
0
,
NULL
);
hgdiobj_event
.
ready_event
=
CreateEvent
A
(
NULL
,
0
,
0
,
NULL
);
ok
(
hgdiobj_event
.
ready_event
!=
NULL
,
"CreateEvent error %u
\n
"
,
GetLastError
());
hthread
=
CreateThread
(
NULL
,
0
,
thread_proc
,
&
hgdiobj_event
,
0
,
&
tid
);
...
...
@@ -162,7 +162,7 @@ static void test_thread_objects(void)
status
=
WaitForSingleObject
(
hgdiobj_event
.
ready_event
,
INFINITE
);
ok
(
status
==
WAIT_OBJECT_0
,
"WaitForSingleObject error %u
\n
"
,
GetLastError
());
ret
=
GetObject
(
hgdiobj_event
.
hgdiobj1
,
sizeof
(
lp
),
&
lp
);
ret
=
GetObject
A
(
hgdiobj_event
.
hgdiobj1
,
sizeof
(
lp
),
&
lp
);
ok
(
ret
==
sizeof
(
lp
),
"GetObject error %u
\n
"
,
GetLastError
());
ok
(
lp
.
lopnStyle
==
PS_DASHDOTDOT
,
"wrong pen style %d
\n
"
,
lp
.
lopnStyle
);
ok
(
lp
.
lopnWidth
.
x
==
17
,
"wrong pen width.y %d
\n
"
,
lp
.
lopnWidth
.
x
);
...
...
@@ -249,7 +249,7 @@ static void test_GetCurrentObject(void)
hobj
=
GetCurrentObject
(
hdc
,
OBJ_BITMAP
);
ok
(
hobj
==
hbmp
,
"OBJ_BITMAP is wrong: %p
\n
"
,
hobj
);
assert
(
GetObject
(
hbrush
,
sizeof
(
lb
),
&
lb
)
==
sizeof
(
lb
));
assert
(
GetObject
A
(
hbrush
,
sizeof
(
lb
),
&
lb
)
==
sizeof
(
lb
));
hpen
=
ExtCreatePen
(
PS_GEOMETRIC
|
PS_SOLID
|
PS_ENDCAP_SQUARE
|
PS_JOIN_BEVEL
,
10
,
&
lb
,
0
,
NULL
);
assert
(
hpen
!=
0
);
...
...
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