[NTOS:KD64] Only use the UNIMPLEMENTED macro in the debugger's KdpSys* helpers. This basically avoids re-entering the debugger (via the embedded breakpoint) while we are already running within its context. In addition, this allows the tests for Kd/NtSystemDebugControl (see PRs #7424 and #7426) to run without having ReactOS to crash. [DH] ntoskrnl/kd64/amd64/kdx64.c [DH] ntoskrnl/kd64/arm/kdarm.c
[COMPBATT] Free device-related memory only if we failed Otherwise, we just inserted in the BatteryList this device, and we will probably crash later when accessing it. [DH] drivers/bus/acpi/compbatt/comppnp.c
[NTOS:FSRTL] FsRtlAcquireFileExclusiveCommon: don't return before acquiring a file resource, except special cases (#7273) * Don't return before file object's resource is acquired in FsRtlAcquireFileExclusiveCommon, except some special return cases, when return is reuired. Based on hpoussin_filter_extra.patch by Herve Poussineau (hpoussin) with improved comment, which matches the actual behaviour now. This is required by fltmgr.sys driver […]