Nikolay Sivov : reg: Don't close not open reg key (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Feb 9 10:29:39 CST 2009
Module: wine
Branch: master
Commit: 5276d886f91fb97682f81f7abc9e5175e1b0cf8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5276d886f91fb97682f81f7abc9e5175e1b0cf8f
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun Feb 8 16:27:48 2009 +0300
reg: Don't close not open reg key (Coverity).
---
programs/reg/reg.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/programs/reg/reg.c b/programs/reg/reg.c
index 4a278d4..823b4d9 100644
--- a/programs/reg/reg.c
+++ b/programs/reg/reg.c
@@ -240,14 +240,12 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
if (value_name && value_empty)
{
- RegCloseKey(subkey);
reg_message(STRING_INVALID_CMDLINE);
return 0;
}
if (value_empty && value_all)
{
- RegCloseKey(subkey);
reg_message(STRING_INVALID_CMDLINE);
return 0;
}
More information about the wine-cvs
mailing list