mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
IopDereferenceVpbAndFree frees a zero-reference VPB only while it is still installed in RealDevice->Vpb. This can leave the device with a dangling VPB pointer while detached VPBs are retained. Reverse the identity test so only a detached, nonpersistent VPB is released after its reference count reaches zero. Reference: - https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_vpb