Author: hbelusca
Date: Wed Jul 13 16:23:12 2016
New Revision: 71925

URL: http://svn.reactos.org/svn/reactos?rev=71925&view=rev
Log:
[MKHIVE]
- Fix usage of the 'Status' variable. CID 1363689
- Fix some DPRINTs.
CORE-11595 #resolve

Modified:
    trunk/reactos/sdk/tools/mkhive/registry.c

Modified: trunk/reactos/sdk/tools/mkhive/registry.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/mkhive/registry.c?rev=71925&r1=71924&r2=71925&view=diff
==============================================================================
--- trunk/reactos/sdk/tools/mkhive/registry.c   [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/mkhive/registry.c   [iso-8859-1] Wed Jul 13 
16:23:12 2016
@@ -582,6 +582,7 @@
         /* 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 @@
             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 @@
     /* Save the write time */
     KeQuerySystemTime(&KeyNode->LastWriteTime);
 
-    DPRINT("Return status 0x%08x\n", Status);
-    return Status;
+    return ERROR_SUCCESS;
 }
 
 


Reply via email to