From da7a57532869537be10262d724586a2415a75161 Mon Sep 17 00:00:00 2001 From: "John K. Hohm" Date: Tue, 27 Jan 2004 20:10:40 +0000 Subject: [PATCH] Allow regedit to edit (Default) key values. --- programs/regedit/edit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c index 68c3494e79..15136a8e6d 100644 --- a/programs/regedit/edit.c +++ b/programs/regedit/edit.c @@ -199,6 +199,8 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCTSTR keyPath, LPCTSTR valueName) if (lRet != ERROR_SUCCESS) return FALSE; editValueName = valueName; + if (!lstrcmp(valueName, _T("(Default)"))) + valueName = NULL; if(!(stringValueData = read_value(hwnd, hKey, valueName, &type, 0))) goto done; if ( (type == REG_SZ) || (type == REG_EXPAND_SZ) ) {