projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MKHIVE] Fix cases where 'rc' was used without being initialized.
[reactos.git]
/
sdk
/
tools
/
mkhive
/
registry.c
diff --git
a/sdk/tools/mkhive/registry.c
b/sdk/tools/mkhive/registry.c
index
c188d7a
..
ad0aafc
100644
(file)
--- a/
sdk/tools/mkhive/registry.c
+++ b/
sdk/tools/mkhive/registry.c
@@
-572,6
+572,7
@@
RegDeleteKeyW(
else
{
hTargetKey = hKey;
+ rc = ERROR_SUCCESS;
}
/* Don't allow deleting the root */
@@
-618,6
+619,8
@@
RegDeleteKeyW(
/* Release the cell */
HvReleaseCell(Hive, ParentCell);
}
+
+ rc = ERROR_SUCCESS;
}
else
{