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
92a8c691
Commit
92a8c691
authored
Mar 01, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix memory leaks.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a8502312
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
edit.c
dlls/user32/edit.c
+1
-1
nonclient.c
dlls/user32/nonclient.c
+5
-1
No files found.
dlls/user32/edit.c
View file @
92a8c691
...
...
@@ -2633,7 +2633,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, const WCHAR *lpsz_r
abs
(
es
->
selection_end
-
es
->
selection_start
)
-
strl
,
hrgn
);
strl
=
0
;
e
=
s
;
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
SetRectRgn
(
hrgn
,
0
,
0
,
0
,
0
);
EDIT_NOTIFY_PARENT
(
es
,
EN_MAXTEXT
);
}
}
...
...
dlls/user32/nonclient.c
View file @
92a8c691
...
...
@@ -976,7 +976,11 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip )
hdc
=
GetDCEx
(
hwnd
,
hrgn
,
DCX_USESTYLE
|
DCX_WINDOW
|
DCX_EXCLUDERGN
);
}
if
(
!
hdc
)
return
;
if
(
!
hdc
)
{
DeleteObject
(
hrgn
);
return
;
}
WIN_GetRectangles
(
hwnd
,
COORDS_WINDOW
,
&
rect
,
NULL
);
GetClipBox
(
hdc
,
&
rectClip
);
...
...
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