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
d2b32bac
Commit
d2b32bac
authored
May 18, 2019
by
Sven Baars
Committed by
Alexandre Julliard
May 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Always free the tooltip text before setting it (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5bf3630
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
tooltips.c
dlls/comctl32/tooltips.c
+7
-6
No files found.
dlls/comctl32/tooltips.c
View file @
d2b32bac
...
...
@@ -1660,6 +1660,13 @@ TOOLTIPS_SetToolInfoT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW)
toolPtr
->
rect
=
ti
->
rect
;
toolPtr
->
hinst
=
ti
->
hinst
;
if
(
(
toolPtr
->
lpszText
)
&&
!
IS_INTRESOURCE
(
toolPtr
->
lpszText
)
)
{
if
(
toolPtr
->
lpszText
!=
LPSTR_TEXTCALLBACKW
)
Free
(
toolPtr
->
lpszText
);
toolPtr
->
lpszText
=
NULL
;
}
if
(
IS_INTRESOURCE
(
ti
->
lpszText
))
{
TRACE
(
"set string id %x
\n
"
,
LOWORD
(
ti
->
lpszText
));
toolPtr
->
lpszText
=
ti
->
lpszText
;
...
...
@@ -1668,12 +1675,6 @@ TOOLTIPS_SetToolInfoT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW)
if
(
ti
->
lpszText
==
LPSTR_TEXTCALLBACKW
)
toolPtr
->
lpszText
=
LPSTR_TEXTCALLBACKW
;
else
{
if
(
(
toolPtr
->
lpszText
)
&&
!
IS_INTRESOURCE
(
toolPtr
->
lpszText
)
)
{
if
(
toolPtr
->
lpszText
!=
LPSTR_TEXTCALLBACKW
)
Free
(
toolPtr
->
lpszText
);
toolPtr
->
lpszText
=
NULL
;
}
if
(
ti
->
lpszText
)
{
if
(
isW
)
{
INT
len
=
lstrlenW
(
ti
->
lpszText
);
...
...
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