[PATCH 1/7] reg: Call RegCloseKey before exiting if the user chooses to cancel the overwriting operation
Hugh McMaster
hugh.mcmaster at outlook.com
Sun Feb 14 18:38:31 CST 2016
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/reg/reg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/reg/reg.c b/programs/reg/reg.c
index 63b518f..cc8cac2 100644
--- a/programs/reg/reg.c
+++ b/programs/reg/reg.c
@@ -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;
}
--
1.9.1
More information about the wine-patches
mailing list