mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 09:34:06 +00:00
regedit: Update the listview item without reloading the value data.
This commit is contained in:
parent
d1bc3623e8
commit
6901f3ccfc
|
@ -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, ¶ms);
|
||||
format_value_data(g_pChildWnd->hListWnd, index, params.type, params.data, params.size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue