mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +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
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ static INT_PTR CALLBACK modify_dword_dlgproc(HWND hwndDlg, UINT msg, WPARAM wpar
|
|||
break;
|
||||
case IDOK:
|
||||
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);
|
||||
/* fall through */
|
||||
case IDCANCEL:
|
||||
|
|
Loading…
Reference in a new issue