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
234daa75
Commit
234daa75
authored
Jun 21, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Implement DeleteDC in the path driver.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
86d14ad1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
path.c
dlls/gdi32/path.c
+6
-8
No files found.
dlls/gdi32/path.c
View file @
234daa75
...
...
@@ -99,7 +99,7 @@ struct path_physdev
static
inline
struct
path_physdev
*
get_path_physdev
(
PHYSDEV
dev
)
{
return
(
struct
path_physdev
*
)
dev
;
return
CONTAINING_RECORD
(
dev
,
struct
path_physdev
,
dev
)
;
}
void
free_gdi_path
(
struct
gdi_path
*
path
)
...
...
@@ -750,13 +750,9 @@ static BOOL pathdrv_BeginPath( PHYSDEV dev )
*/
static
BOOL
pathdrv_AbortPath
(
PHYSDEV
dev
)
{
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
DC
*
dc
=
get_dc_ptr
(
dev
->
hdc
);
if
(
!
dc
)
return
FALSE
;
free_gdi_path
(
physdev
->
path
);
pop_dc_driver
(
dc
,
&
path_driver
);
HeapFree
(
GetProcessHeap
(),
0
,
physdev
);
path_driver
.
pDeleteDC
(
pop_dc_driver
(
dc
,
&
path_driver
));
release_dc_ptr
(
dc
);
return
TRUE
;
}
...
...
@@ -770,7 +766,6 @@ static BOOL pathdrv_EndPath( PHYSDEV dev )
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
DC
*
dc
=
get_dc_ptr
(
dev
->
hdc
);
if
(
!
dc
)
return
FALSE
;
dc
->
path
=
physdev
->
path
;
pop_dc_driver
(
dc
,
&
path_driver
);
HeapFree
(
GetProcessHeap
(),
0
,
physdev
);
...
...
@@ -801,7 +796,10 @@ static BOOL pathdrv_CreateDC( PHYSDEV *dev, LPCWSTR driver, LPCWSTR device,
*/
static
BOOL
pathdrv_DeleteDC
(
PHYSDEV
dev
)
{
assert
(
0
);
/* should never be called */
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
free_gdi_path
(
physdev
->
path
);
HeapFree
(
GetProcessHeap
(),
0
,
physdev
);
return
TRUE
;
}
...
...
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