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
ae9d5ce5
Commit
ae9d5ce5
authored
May 30, 2017
by
Józef Kucia
Committed by
Alexandre Julliard
May 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix memory leak in WinHelpA().
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1cd883fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
winhelp.c
dlls/user32/winhelp.c
+4
-1
No files found.
dlls/user32/winhelp.c
View file @
ae9d5ce5
...
...
@@ -80,6 +80,7 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand, ULONG_PTR dwD
HWND
hDest
;
int
size
,
dsize
,
nlen
;
WINHELP
*
lpwh
;
LRESULT
ret
;
hDest
=
FindWindowA
(
"MS_WINHELP"
,
NULL
);
if
(
!
hDest
)
...
...
@@ -156,7 +157,9 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand, ULONG_PTR dwD
lpwh
->
size
,
lpwh
->
command
,
lpwh
->
data
,
lpwh
->
ofsFilename
?
(
LPSTR
)
lpwh
+
lpwh
->
ofsFilename
:
""
);
return
SendMessageA
(
hDest
,
WM_COPYDATA
,
(
WPARAM
)
hWnd
,
(
LPARAM
)
&
cds
);
ret
=
SendMessageA
(
hDest
,
WM_COPYDATA
,
(
WPARAM
)
hWnd
,
(
LPARAM
)
&
cds
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwh
);
return
ret
;
}
...
...
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