Commit e0492b27 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Call RegCloseKey before exiting if the user chooses to cancel the overwriting operation.

parent 9cd67d2a
......@@ -352,6 +352,7 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
{
if (!ask_confirm(STRING_OVERWRITE_VALUE, value_name))
{
RegCloseKey(subkey);
output_message(STRING_CANCELLED);
return 0;
}
......
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