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
619e9683
Commit
619e9683
authored
Nov 13, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Add some invalid parameter tests for GdipGetRegionData.
parent
dc60ed45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
region.c
dlls/gdiplus/tests/region.c
+18
-2
No files found.
dlls/gdiplus/tests/region.c
View file @
619e9683
...
...
@@ -118,14 +118,30 @@ static void test_getregiondata(void)
GpPath
*
path
;
GpMatrix
*
matrix
;
memset
(
buf
,
0xee
,
sizeof
(
buf
));
status
=
GdipCreateRegion
(
&
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
needed
=
0
;
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
needed
=
0
;
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
0
,
&
needed
);
ok
(
status
==
InvalidParameter
,
"status %08x
\n
"
,
status
);
memset
(
buf
,
0xee
,
sizeof
(
buf
));
needed
=
0
;
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
4
,
&
needed
);
todo_wine
ok
(
status
==
InsufficientBuffer
,
"status %08x
\n
"
,
status
);
todo_wine
expect
(
4
,
needed
);
todo_wine
expect_dword
(
buf
,
0xeeeeeeee
);
memset
(
buf
,
0xee
,
sizeof
(
buf
));
needed
=
0
;
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
sizeof
(
buf
),
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
...
...
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