mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:55:41 +00:00
[MKHIVE]
- Fix usage of the 'Status' variable. CID 1363689 - Fix some DPRINTs. CORE-11595 #resolve svn path=/trunk/; revision=71925
This commit is contained in:
parent
3aa8e4c2ac
commit
054f3b25f7
1 changed files with 3 additions and 3 deletions
|
@ -582,6 +582,7 @@ RegSetValueExW(
|
||||||
/* The value already exists, use it. Get the value cell. */
|
/* The value already exists, use it. Get the value cell. */
|
||||||
ValueCell = HvGetCell(&Key->RegistryHive->Hive, CellIndex);
|
ValueCell = HvGetCell(&Key->RegistryHive->Hive, CellIndex);
|
||||||
ASSERT(ValueCell != NULL);
|
ASSERT(ValueCell != NULL);
|
||||||
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**/HvReleaseCell(Hive, CellIndex);/**/
|
// /**/HvReleaseCell(Hive, CellIndex);/**/
|
||||||
|
@ -629,7 +630,7 @@ RegSetValueExW(
|
||||||
NewOffset = HvAllocateCell(Hive, cbData, Stable, HCELL_NIL);
|
NewOffset = HvAllocateCell(Hive, cbData, Stable, HCELL_NIL);
|
||||||
if (NewOffset == HCELL_NIL)
|
if (NewOffset == HCELL_NIL)
|
||||||
{
|
{
|
||||||
DPRINT("HvAllocateCell() failed with status 0x%08x\n", Status);
|
DPRINT("HvAllocateCell() has failed!\n");
|
||||||
return ERROR_UNSUCCESSFUL;
|
return ERROR_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -660,8 +661,7 @@ RegSetValueExW(
|
||||||
/* Save the write time */
|
/* Save the write time */
|
||||||
KeQuerySystemTime(&KeyNode->LastWriteTime);
|
KeQuerySystemTime(&KeyNode->LastWriteTime);
|
||||||
|
|
||||||
DPRINT("Return status 0x%08x\n", Status);
|
return ERROR_SUCCESS;
|
||||||
return Status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue