mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 08:20:27 +00:00
[NTOSKRNL] On device map freeing, make directory object temporary again
This commit is contained in:
parent
221ed88141
commit
848f7bb687
1 changed files with 2 additions and 1 deletions
|
@ -189,7 +189,8 @@ ObfDereferenceDeviceMap(IN PDEVICE_MAP DeviceMap)
|
||||||
KeReleaseGuardedMutex(&ObpDeviceMapLock);
|
KeReleaseGuardedMutex(&ObpDeviceMapLock);
|
||||||
|
|
||||||
/* Dereference the DOS Devices Directory and free the Device Map */
|
/* Dereference the DOS Devices Directory and free the Device Map */
|
||||||
ObDereferenceObject(DeviceMap->DosDevicesDirectory );
|
ObMakeTemporaryObject(DeviceMap->DosDevicesDirectory);
|
||||||
|
ObDereferenceObject(DeviceMap->DosDevicesDirectory);
|
||||||
ExFreePoolWithTag(DeviceMap, 'mDbO');
|
ExFreePoolWithTag(DeviceMap, 'mDbO');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue