- DBGKD_WAIT_STATE_CHANGE64 is used in KD protocol 5, not number 6 that we use. Proto...
[reactos.git] / reactos / lib / cmlib / hiveinit.c
index 48950bd..c043f26 100644 (file)
@@ -445,6 +445,9 @@ HvInitialize(
    NTSTATUS Status;
    PHHIVE Hive = RegistryHive;
 
+   UNREFERENCED_PARAMETER(HiveType);
+   UNREFERENCED_PARAMETER(FileName);
+
    /*
     * Create a new hive structure that will hold all the maintenance data.
     */
@@ -498,10 +501,7 @@ HvInitialize(
    }
 
    if (!NT_SUCCESS(Status))
-   {
-      Hive->Free(Hive, 0);
       return Status;
-   }
 
    if (Operation != HINIT_CREATE) CmPrepareHive(Hive);