mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:05:49 +00:00
regedit: Use zero as a REG_DWORD/REG_QWORD default if edit control is empty.
This commit is contained in:
parent
cf9e6b3b22
commit
e604f3e2ef
|
@ -235,6 +235,8 @@ static INT_PTR CALLBACK modify_dword_dlgproc(HWND hwndDlg, UINT msg, WPARAM wpar
|
||||||
break;
|
break;
|
||||||
case IDOK:
|
case IDOK:
|
||||||
params = (struct edit_params *)GetWindowLongPtrW(hwndDlg, DWLP_USER);
|
params = (struct edit_params *)GetWindowLongPtrW(hwndDlg, DWLP_USER);
|
||||||
|
if (!SendDlgItemMessageW(hwndDlg, IDC_VALUE_DATA, EM_LINELENGTH, 0, 0))
|
||||||
|
SetDlgItemTextW(hwndDlg, IDC_VALUE_DATA, L"0");
|
||||||
ret = update_registry_value(hwndDlg, params);
|
ret = update_registry_value(hwndDlg, params);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case IDCANCEL:
|
case IDCANCEL:
|
||||||
|
|
Loading…
Reference in a new issue