[NTOS:CM] Implement more support for force-unloading registry hives.
[reactos.git] / ntoskrnl / config / ntapi.c
index 7a5376f..5be3a27 100644 (file)
@@ -1542,8 +1542,8 @@ NtQueryOpenSubKeys(IN POBJECT_ATTRIBUTES TargetKey,
     }
 
     /* Call the internal API */
     }
 
     /* Call the internal API */
-    *HandleCount = CmCountOpenSubKeys(KeyBody->KeyControlBlock,
-                                      FALSE);
+    *HandleCount = CmpEnumerateOpenSubKeys(KeyBody->KeyControlBlock,
+                                           FALSE, FALSE);
 
     /* Unlock the registry */
     CmpUnlockRegistry();
 
     /* Unlock the registry */
     CmpUnlockRegistry();