regedit: Allow entering - for a value in a .reg file to delete that value.

oldstable
Yuriy Kozlov 2006-07-28 13:38:44 -04:00 committed by Alexandre Julliard
parent 8c6040fccc
commit 1e1031b41d
1 changed files with 3 additions and 0 deletions

View File

@ -392,6 +392,9 @@ HRESULT setValue(LPSTR val_name, LPSTR val_data)
if ( (val_name == NULL) || (val_data == NULL) )
return ERROR_INVALID_PARAMETER;
if (val_data[0] == '-')
return RegDeleteValue(currentKeyHandle,val_name);
/* Get the data type stored into the value field */
dwDataType = getDataType(&val_data, &dwParseType);