mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
regedit: Free allocated memory after calling GetValueName().
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1291c6ded4
commit
a7a08e2927
3 changed files with 5 additions and 4 deletions
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue