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
f11a7402
Commit
f11a7402
authored
Oct 31, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix double free error in GetValueName.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cda738d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
listview.c
programs/regedit/listview.c
+1
-8
No files found.
programs/regedit/listview.c
View file @
f11a7402
...
...
@@ -38,7 +38,6 @@ DWORD g_columnToSort = ~0U;
BOOL
g_invertSort
=
FALSE
;
WCHAR
*
g_currentPath
;
HKEY
g_currentRootKey
;
static
WCHAR
*
g_valueName
;
static
WCHAR
g_szValueNotSet
[
64
];
#define MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1)
...
...
@@ -66,16 +65,10 @@ WCHAR *GetValueName(HWND hwndLV)
{
INT
item
;
if
(
g_valueName
!=
LPSTR_TEXTCALLBACKW
)
heap_free
(
g_valueName
);
g_valueName
=
NULL
;
item
=
SendMessageW
(
hwndLV
,
LVM_GETNEXTITEM
,
-
1
,
MAKELPARAM
(
LVNI_FOCUSED
,
0
));
if
(
item
==
-
1
)
return
NULL
;
g_valueName
=
GetItemText
(
hwndLV
,
item
);
return
g_valueName
;
return
GetItemText
(
hwndLV
,
item
);
}
BOOL
update_listview_path
(
const
WCHAR
*
path
)
...
...
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