mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 05:55:48 +00:00
[MKHIVE] Fix cases where 'rc' was used without being initialized.
Fixes crashes when the tool is compiled with Run-Time Checks enabled. And thus should fix the MSVC buildbots! Thanks to Pierre for having brought this issue to me. CORE-15201
This commit is contained in:
parent
473ca91166
commit
e723b9f4b4
1 changed files with 3 additions and 0 deletions
|
@ -572,6 +572,7 @@ RegDeleteKeyW(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hTargetKey = hKey;
|
hTargetKey = hKey;
|
||||||
|
rc = ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't allow deleting the root */
|
/* Don't allow deleting the root */
|
||||||
|
@ -618,6 +619,8 @@ RegDeleteKeyW(
|
||||||
/* Release the cell */
|
/* Release the cell */
|
||||||
HvReleaseCell(Hive, ParentCell);
|
HvReleaseCell(Hive, ParentCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rc = ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue