Allow regedit to edit (Default) key values.

This commit is contained in:
John K. Hohm 2004-01-27 20:10:40 +00:00 committed by Alexandre Julliard
parent 6c95e75fea
commit da7a575328

View file

@ -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) ) {