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
53e05015
Commit
53e05015
authored
Jul 03, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't access DC in PolyDraw after releasing handle.
parent
c60c030c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
painting.c
dlls/gdi32/painting.c
+13
-8
No files found.
dlls/gdi32/painting.c
View file @
53e05015
...
...
@@ -833,18 +833,18 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
if
(
dc
->
funcs
->
pPolyDraw
)
{
result
=
dc
->
funcs
->
pPolyDraw
(
dc
->
physDev
,
lppt
,
lpbTypes
,
cCount
);
GDI_ReleaseObj
(
hdc
);
return
result
;
goto
end
;
}
GDI_ReleaseObj
(
hdc
);
/* check for each bezierto if there are two more points */
for
(
i
=
0
;
i
<
cCount
;
i
++
)
if
(
lpbTypes
[
i
]
!=
PT_MOVETO
&&
lpbTypes
[
i
]
&
PT_BEZIERTO
)
{
if
(
cCount
<
i
+
3
)
return
FALSE
;
if
(
cCount
<
i
+
3
){
result
=
FALSE
;
goto
end
;
}
else
i
+=
2
;
}
...
...
@@ -869,8 +869,10 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
PolyBezierTo
(
hdc
,
&
lppt
[
i
],
3
);
i
+=
2
;
}
else
return
FALSE
;
else
{
result
=
FALSE
;
goto
end
;
}
if
(
lpbTypes
[
i
]
&
PT_CLOSEFIGURE
)
{
...
...
@@ -881,7 +883,10 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes,
}
}
return
TRUE
;
result
=
TRUE
;
end:
GDI_ReleaseObj
(
hdc
);
return
result
;
}
...
...
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