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
665fa81a
Commit
665fa81a
authored
Mar 01, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Fix a memory leak.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
92a8c691
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
colordlg.c
dlls/comdlg32/colordlg.c
+4
-1
No files found.
dlls/comdlg32/colordlg.c
View file @
665fa81a
...
...
@@ -523,6 +523,7 @@ static void CC_PaintCross(CCPRIV *infoPtr)
int
wc
=
GetDialogBaseUnits
()
*
3
/
4
;
RECT
rect
;
POINT
point
,
p
;
HRGN
region
;
HPEN
hPen
;
int
x
,
y
;
...
...
@@ -531,7 +532,9 @@ static void CC_PaintCross(CCPRIV *infoPtr)
GetClientRect
(
hwnd
,
&
rect
);
hDC
=
GetDC
(
hwnd
);
SelectClipRgn
(
hDC
,
CreateRectRgnIndirect
(
&
rect
));
region
=
CreateRectRgnIndirect
(
&
rect
);
SelectClipRgn
(
hDC
,
region
);
DeleteObject
(
region
);
point
.
x
=
((
long
)
rect
.
right
*
(
long
)
x
)
/
(
long
)
MAXHORI
;
point
.
y
=
rect
.
bottom
-
((
long
)
rect
.
bottom
*
(
long
)
y
)
/
(
long
)
MAXVERT
;
...
...
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