projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d21beb
)
Close the key only if we have opened it (it's not the case when the subkey name is...
author
Hervé Poussineau
<hpoussin@reactos.org>
Sat, 24 Dec 2005 23:24:40 +0000
(23:24 +0000)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Sat, 24 Dec 2005 23:24:40 +0000
(23:24 +0000)
svn path=/trunk/; revision=20324
reactos/lib/setupapi/install.c
patch
|
blob
|
history
diff --git
a/reactos/lib/setupapi/install.c
b/reactos/lib/setupapi/install.c
index
c1f9245
..
933ff97
100644
(file)
--- a/
reactos/lib/setupapi/install.c
+++ b/
reactos/lib/setupapi/install.c
@@
-433,10
+433,10
@@
static BOOL registry_callback( HINF hinf, PCWSTR field, void *arg )
/* and now do it */
if (!do_reg_operation( hkey, buffer, &context, flags ))
{
- RegCloseKey( hkey );
+
if (hkey != root_key)
RegCloseKey( hkey );
return FALSE;
}
- RegCloseKey( hkey );
+
if (hkey != root_key)
RegCloseKey( hkey );
}
return TRUE;
}