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
50957799
Commit
50957799
authored
Aug 03, 2001
by
Marco Bizzarri
Committed by
Alexandre Julliard
Aug 03, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetControlBrush16: avoid potentially releasing the same pointer
twice.
parent
b91c3ca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
painting.c
windows/painting.c
+5
-15
No files found.
windows/painting.c
View file @
50957799
...
...
@@ -479,23 +479,13 @@ void WINAPI PaintRect16( HWND16 hwndParent, HWND16 hwnd, HDC16 hdc,
*/
HBRUSH16
WINAPI
GetControlBrush16
(
HWND16
hwnd
,
HDC16
hdc
,
UINT16
ctlType
)
{
WND
*
wndPtr
=
WIN_FindWndPtr
(
hwnd
);
HBRUSH16
retvalue
;
if
((
ctlType
<=
CTLCOLOR_MAX
)
&&
wndPtr
)
if
(
ctlType
<=
CTLCOLOR_MAX
)
{
WND
*
parent
;
if
(
wndPtr
->
dwStyle
&
WS_POPUP
)
parent
=
WIN_LockWndPtr
(
wndPtr
->
owner
);
else
parent
=
WIN_LockWndPtr
(
wndPtr
->
parent
);
if
(
!
parent
)
parent
=
wndPtr
;
retvalue
=
(
HBRUSH16
)
PAINT_GetControlBrush
(
parent
->
hwndSelf
,
hwnd
,
hdc
,
ctlType
);
WIN_ReleaseWndPtr
(
parent
);
goto
END
;
HWND16
parent
=
GetParent16
(
hwnd
);
if
(
!
parent
)
parent
=
hwnd
;
return
PAINT_GetControlBrush
(
parent
,
hwnd
,
hdc
,
ctlType
);
}
retvalue
=
(
HBRUSH16
)
0
;
END:
WIN_ReleaseWndPtr
(
wndPtr
);
return
retvalue
;
return
0
;
}
...
...
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