projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MKHIVE] Implement and use RegCloseKey().
[reactos.git]
/
sdk
/
tools
/
mkhive
/
reginf.c
diff --git
a/sdk/tools/mkhive/reginf.c
b/sdk/tools/mkhive/reginf.c
index
c6087a9
..
47f0d85
100644
(file)
--- a/
sdk/tools/mkhive/reginf.c
+++ b/
sdk/tools/mkhive/reginf.c
@@
-463,8
+463,11
@@
registry_callback(HINF hInf, PWCHAR Section, BOOL Delete)
/* and now do it */
if (!do_reg_operation(KeyHandle, ValuePtr, Context, Flags))
{
+ RegCloseKey(KeyHandle);
return FALSE;
}
+
+ RegCloseKey(KeyHandle);
}
InfHostFreeContext(Context);