Commit 1e1031b4 authored by Yuriy Kozlov's avatar Yuriy Kozlov Committed by Alexandre Julliard

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

parent 8c6040fc
......@@ -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);
......
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