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
5c752777
Commit
5c752777
authored
Nov 24, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add parameter checking to GdipGetRegionHRgn.
parent
25f7ad44
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
region.c
dlls/gdiplus/region.c
+3
-0
region.c
dlls/gdiplus/tests/region.c
+37
-1
No files found.
dlls/gdiplus/region.c
View file @
5c752777
...
...
@@ -775,6 +775,9 @@ GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HR
{
FIXME
(
"(%p, %p, %p): stub
\n
"
,
region
,
graphics
,
hrgn
);
if
(
!
region
||
!
hrgn
)
return
InvalidParameter
;
*
hrgn
=
NULL
;
return
NotImplemented
;
}
...
...
dlls/gdiplus/tests/region.c
View file @
5c752777
...
...
@@ -743,6 +743,42 @@ todo_wine{
DeleteObject
((
HGDIOBJ
)
hrgn
);
}
static
void
test_gethrgn
(
void
)
{
GpStatus
status
;
GpRegion
*
region
;
GpGraphics
*
graphics
;
HRGN
hrgn
;
HDC
hdc
=
GetDC
(
0
);
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipCreateRegion
(
&
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipGetRegionHRgn
(
NULL
,
graphics
,
&
hrgn
);
ok
(
status
==
InvalidParameter
,
"status %08x
\n
"
,
status
);
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
NULL
);
ok
(
status
==
InvalidParameter
,
"status %08x
\n
"
,
status
);
hrgn
=
NULL
;
status
=
GdipGetRegionHRgn
(
region
,
NULL
,
&
hrgn
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
DeleteObject
(
hrgn
);
hrgn
=
NULL
;
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
&
hrgn
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
DeleteObject
(
hrgn
);
status
=
GdipDeleteRegion
(
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipDeleteGraphics
(
graphics
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ReleaseDC
(
0
,
hdc
);
}
START_TEST
(
region
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -760,7 +796,7 @@ START_TEST(region)
test_isempty
();
test_combinereplace
();
test_fromhrgn
();
test_gethrgn
();
GdiplusShutdown
(
gdiplusToken
);
}
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