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
a7a08e29
Commit
a7a08e29
authored
Jul 16, 2018
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Free allocated memory after calling GetValueName().
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1291c6de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
framewnd.c
programs/regedit/framewnd.c
+3
-2
listview.c
programs/regedit/listview.c
+1
-1
main.h
programs/regedit/main.h
+1
-1
No files found.
programs/regedit/framewnd.c
View file @
a7a08e29
...
@@ -853,10 +853,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
...
@@ -853,10 +853,11 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case
ID_EDIT_MODIFY
:
case
ID_EDIT_MODIFY
:
case
ID_EDIT_MODIFY_BIN
:
case
ID_EDIT_MODIFY_BIN
:
{
{
LPCWSTR
valueName
=
GetValueName
(
g_pChildWnd
->
hListWnd
);
WCHAR
*
valueName
=
GetValueName
(
g_pChildWnd
->
hListWnd
);
WCHAR
*
keyPath
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hKeyRoot
);
WCHAR
*
keyPath
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hKeyRoot
);
ModifyValue
(
hWnd
,
hKeyRoot
,
keyPath
,
valueName
);
ModifyValue
(
hWnd
,
hKeyRoot
,
keyPath
,
valueName
);
heap_free
(
keyPath
);
heap_free
(
keyPath
);
heap_free
(
valueName
);
break
;
break
;
}
}
case
ID_EDIT_FIND
:
case
ID_EDIT_FIND
:
...
...
programs/regedit/listview.c
View file @
a7a08e29
...
@@ -63,7 +63,7 @@ LPWSTR GetItemText(HWND hwndLV, UINT item)
...
@@ -63,7 +63,7 @@ LPWSTR GetItemText(HWND hwndLV, UINT item)
return
NULL
;
return
NULL
;
}
}
LPCWSTR
GetValueName
(
HWND
hwndLV
)
WCHAR
*
GetValueName
(
HWND
hwndLV
)
{
{
INT
item
;
INT
item
;
...
...
programs/regedit/main.h
View file @
a7a08e29
...
@@ -150,7 +150,7 @@ int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
...
@@ -150,7 +150,7 @@ int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
BOOL
RefreshListView
(
HWND
hwndLV
,
HKEY
hKeyRoot
,
LPCWSTR
keyPath
,
LPCWSTR
highlightValue
);
BOOL
RefreshListView
(
HWND
hwndLV
,
HKEY
hKeyRoot
,
LPCWSTR
keyPath
,
LPCWSTR
highlightValue
);
HWND
StartValueRename
(
HWND
hwndLV
);
HWND
StartValueRename
(
HWND
hwndLV
);
LPWSTR
GetItemText
(
HWND
hwndLV
,
UINT
item
);
LPWSTR
GetItemText
(
HWND
hwndLV
,
UINT
item
);
LPCWSTR
GetValueName
(
HWND
hwndLV
);
WCHAR
*
GetValueName
(
HWND
hwndLV
);
BOOL
ListWndNotifyProc
(
HWND
hWnd
,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
*
Result
);
BOOL
ListWndNotifyProc
(
HWND
hWnd
,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
*
Result
);
BOOL
IsDefaultValue
(
HWND
hwndLV
,
int
i
);
BOOL
IsDefaultValue
(
HWND
hwndLV
,
int
i
);
...
...
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