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
960de09e
Commit
960de09e
authored
Aug 26, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipDeleteGraphics affected by busy state too. Test added.
parent
722e1f9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
graphics.c
dlls/gdiplus/graphics.c
+2
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+3
-0
No files found.
dlls/gdiplus/graphics.c
View file @
960de09e
...
@@ -889,6 +889,8 @@ GpStatus WINGDIPAPI GdipCreateStreamOnFile(GDIPCONST WCHAR * filename,
...
@@ -889,6 +889,8 @@ GpStatus WINGDIPAPI GdipCreateStreamOnFile(GDIPCONST WCHAR * filename,
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
graphics
)
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
graphics
)
{
{
if
(
!
graphics
)
return
InvalidParameter
;
if
(
!
graphics
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
graphics
->
hwnd
)
if
(
graphics
->
hwnd
)
ReleaseDC
(
graphics
->
hwnd
,
graphics
->
hdc
);
ReleaseDC
(
graphics
->
hwnd
,
graphics
->
hdc
);
...
...
dlls/gdiplus/tests/graphics.c
View file @
960de09e
...
@@ -714,6 +714,9 @@ static void test_Get_Release_DC(void)
...
@@ -714,6 +714,9 @@ static void test_Get_Release_DC(void)
status
=
GdipMultiplyWorldTransform
(
graphics
,
m
,
MatrixOrderPrepend
);
status
=
GdipMultiplyWorldTransform
(
graphics
,
m
,
MatrixOrderPrepend
);
status
=
GdipGetClip
(
graphics
,
region
);
status
=
GdipGetClip
(
graphics
,
region
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
/* try to delete before release */
status
=
GdipDeleteGraphics
(
graphics
);
expect
(
ObjectBusy
,
status
);
status
=
GdipReleaseDC
(
graphics
,
retdc
);
status
=
GdipReleaseDC
(
graphics
,
retdc
);
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
...
...
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