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
3f304014
Commit
3f304014
authored
Oct 07, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add some tests for SetMiterLimit() argument validation.
parent
5b471a29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
dc.c
dlls/gdi32/tests/dc.c
+21
-0
No files found.
dlls/gdi32/tests/dc.c
View file @
3f304014
...
...
@@ -38,6 +38,8 @@ static void test_dc_values(void)
HDC
hdc
=
CreateDCA
(
"DISPLAY"
,
NULL
,
NULL
,
NULL
);
COLORREF
color
;
int
extra
,
attr
;
float
limit
;
BOOL
ret
;
ok
(
hdc
!=
NULL
,
"CreateDC failed
\n
"
);
color
=
SetBkColor
(
hdc
,
0x12345678
);
...
...
@@ -91,6 +93,25 @@ static void test_dc_values(void)
ok
(
!
attr
,
"GetDeviceCaps rets %d
\n
"
,
attr
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"GetLastError() = %lu
\n
"
,
GetLastError
());
/* Miter limit */
limit
=
123
.
0
f
;
ret
=
GetMiterLimit
(
hdc
,
&
limit
);
ok
(
ret
,
"Unexpected return value.
\n
"
);
ok
(
limit
==
10
.
0
f
,
"Unexpected default miter limit %f.
\n
"
,
limit
);
limit
=
456
.
0
;
ret
=
SetMiterLimit
(
hdc
,
0
.
9
f
,
&
limit
);
todo_wine
ok
(
!
ret
,
"Unexpected return value.
\n
"
);
todo_wine
ok
(
limit
==
456
.
0
f
,
"Unexpected default miter limit %f.
\n
"
,
limit
);
limit
=
0
.
0
;
ret
=
SetMiterLimit
(
hdc
,
1
.
0
f
,
&
limit
);
ok
(
ret
,
"Unexpected return value.
\n
"
);
todo_wine
ok
(
limit
==
10
.
0
f
,
"Unexpected default miter limit %f.
\n
"
,
limit
);
DeleteDC
(
hdc
);
}
...
...
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