reactos/ntoskrnl/config
George Bișoc 7dd8a30cf9
[NTOS:CM] Remove orphaned KCBs of keys during normal hive unload
A hive whose KCBs have a reference count of 0, meaning nobody is using these keys anymore, will not get removed from the cache table.
As a result during a normal hive unloading operation you will get orphaned KCBs which results in an unload failure.

This is wrong, because this is what a normal hive unloading is supposed to do. What it cannot do of course is that it cannot
scramble the references of opened keys by the users who use the Registry, as it is the job of force unloading mechanism to do that.

Also remove a misleading debug print. Force unloading works as intended by scrambling the references of keys and marking the KCB for deletion,
which is what how a force unload works. Namely Windows does exactly that.

CORE-10705
2024-03-24 19:03:47 +01:00
..
arm Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
i386 [NTOS] "Bugzilla" --> "Jira" 2023-04-05 03:33:41 +02:00
cmalloc.c [NTOS:CM] Simplify CmpDelayAllocBucketLock code a bit (#5729) 2023-09-28 11:39:13 +02:00
cmapi.c [NTOS:CM] Remove orphaned KCBs of keys during normal hive unload 2024-03-24 19:03:47 +01:00
cmboot.c [NTOS:CM] Adapt cmboot.c for usage in NT/ReactOS bootloader. 2022-04-16 18:37:45 +02:00
cmconfig.c [NTOS:CONFIG] Use correct "Interface" variable type; use InterfaceTypeUndefined instead of -1. 2023-06-25 21:25:06 +02:00
cmcontrl.c [NTOS:CM][CMLIB] Minor code styling 2024-01-17 22:09:37 +01:00
cmdata.c [NTOS:CM][CMLIB] In PE mode, allow registry hives (except system ones) to use read/write access. 2024-01-17 22:13:03 +01:00
cmdelay.c [REACTOS] Cleanup INIT and some PAGE section allocations 2020-11-02 21:45:31 +03:00
cmhook.c [REACTOS] Cleanup INIT and some PAGE section allocations 2020-11-02 21:45:31 +03:00
cmhvlist.c [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
cminit.c [NTOS:CM][CMLIB] Minor code styling 2024-01-17 22:09:37 +01:00
cmkcbncb.c [NTOS:CM][CMLIB] Minor code styling 2024-01-17 22:09:37 +01:00
cmlazy.c [NTOS:CM][CMLIB] In PE mode, allow registry hives (except system ones) to use read/write access. 2024-01-17 22:13:03 +01:00
cmmapvw.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
cmnotify.c [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
cmparse.c [NTOS:CM][CMLIB] Minor code styling 2024-01-17 22:09:37 +01:00
cmquota.c [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
cmse.c [NTOS:CM][CMLIB] Minor code styling 2024-01-17 22:09:37 +01:00
cmsecach.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
cmsysini.c [NTOS:CM][CMLIB] In PE mode, allow registry hives (except system ones) to use read/write access. 2024-01-17 22:13:03 +01:00
cmvalche.c [NTOS:CM][CMLIB] Minor code styling 2024-01-17 22:09:37 +01:00
cmwraprs.c [NTOS:CM] Disable hard errors when setting up a new size for a hive file / annotate CmpFileSetSize parameters with SAL 2023-11-19 20:44:26 +01:00
ntapi.c [NTOS:CM] Lock the cached KCB before removing it from cache entries 2024-03-24 19:03:43 +01:00