Hugh McMaster : regedit: Update the listview item without reloading the value data.

Alexandre Julliard julliard at winehq.org
Mon Jul 25 16:19:29 CDT 2022


Module: wine
Branch: master
Commit: 6901f3ccfc30155a5c38e2285c26a02dce8d903e
URL:    https://gitlab.winehq.org/wine/wine/-/commit/6901f3ccfc30155a5c38e2285c26a02dce8d903e

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Mon Jul 25 20:45:35 2022 +1000

regedit: Update the listview item without reloading the value data.

---

 programs/regedit/edit.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c
index 4588be196d6..537bcbd4541 100644
--- a/programs/regedit/edit.c
+++ b/programs/regedit/edit.c
@@ -143,9 +143,6 @@ static BOOL update_registry_value(HWND hwndDlg, struct edit_params *params)
     ret = RegSetValueExW(params->hkey, params->value_name, 0, params->type, (BYTE *)params->data, params->size);
     if (ret) error_code_messagebox(hwndDlg, IDS_SET_VALUE_FAILED);
 
-    free(params->data);
-    params->data = NULL;
-
     return !ret;
 }
 
@@ -427,7 +424,6 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
         int index = SendMessageW(g_pChildWnd->hListWnd, LVM_GETNEXTITEM, -1,
                                  MAKELPARAM(LVNI_FOCUSED | LVNI_SELECTED, 0));
 
-        read_value(hwnd, &params);
         format_value_data(g_pChildWnd->hListWnd, index, params.type, params.data, params.size);
     }
 




More information about the wine-cvs mailing list