From 054f3b25f75dea2543545cce832ff087416ea70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 13 Jul 2016 16:23:12 +0000 Subject: [PATCH] [MKHIVE] - Fix usage of the 'Status' variable. CID 1363689 - Fix some DPRINTs. CORE-11595 #resolve svn path=/trunk/; revision=71925 --- reactos/sdk/tools/mkhive/registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/sdk/tools/mkhive/registry.c b/reactos/sdk/tools/mkhive/registry.c index 91f93d48d78..e7a8cc9100c 100644 --- a/reactos/sdk/tools/mkhive/registry.c +++ b/reactos/sdk/tools/mkhive/registry.c @@ -582,6 +582,7 @@ RegSetValueExW( /* The value already exists, use it. Get the value cell. */ ValueCell = HvGetCell(&Key->RegistryHive->Hive, CellIndex); ASSERT(ValueCell != NULL); + Status = STATUS_SUCCESS; } // /**/HvReleaseCell(Hive, CellIndex);/**/ @@ -629,7 +630,7 @@ RegSetValueExW( NewOffset = HvAllocateCell(Hive, cbData, Stable, HCELL_NIL); if (NewOffset == HCELL_NIL) { - DPRINT("HvAllocateCell() failed with status 0x%08x\n", Status); + DPRINT("HvAllocateCell() has failed!\n"); return ERROR_UNSUCCESSFUL; } @@ -660,8 +661,7 @@ RegSetValueExW( /* Save the write time */ KeQuerySystemTime(&KeyNode->LastWriteTime); - DPRINT("Return status 0x%08x\n", Status); - return Status; + return ERROR_SUCCESS; }