Commit da7a5753 authored by John K. Hohm's avatar John K. Hohm Committed by Alexandre Julliard

Allow regedit to edit (Default) key values.

parent 6c95e75f
...@@ -199,6 +199,8 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCTSTR keyPath, LPCTSTR valueName) ...@@ -199,6 +199,8 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCTSTR keyPath, LPCTSTR valueName)
if (lRet != ERROR_SUCCESS) return FALSE; if (lRet != ERROR_SUCCESS) return FALSE;
editValueName = valueName; editValueName = valueName;
if (!lstrcmp(valueName, _T("(Default)")))
valueName = NULL;
if(!(stringValueData = read_value(hwnd, hKey, valueName, &type, 0))) goto done; if(!(stringValueData = read_value(hwnd, hKey, valueName, &type, 0))) goto done;
if ( (type == REG_SZ) || (type == REG_EXPAND_SZ) ) { if ( (type == REG_SZ) || (type == REG_EXPAND_SZ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment