mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CMBATT] Send correct tag on IoAcquireRemoveLock
This prevents an assert in IoReleaseRemoveLock in debug builds, which already receives the 'Irp' tag.
This commit is contained in:
parent
6b5ee5ccc7
commit
7f1025dcce
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ CmBattIoctl(IN PDEVICE_OBJECT DeviceObject,
|
|||
if (CmBattDebug & 2) DbgPrint("CmBattIoctl\n");
|
||||
|
||||
/* Acquire the remove lock */
|
||||
Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, 0);
|
||||
Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* It's too late, fail */
|
||||
|
|
Loading…
Reference in a new issue