mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-05 05:08:12 -06:00
Windows driver: remove unneeded __try/__finally
This commit is contained in:
@@ -332,8 +332,6 @@ static VOID CompleteIrpWorkItemRoutine(PDEVICE_OBJECT DeviceObject, PVOID Contex
|
|||||||
KIRQL oldIrql;
|
KIRQL oldIrql;
|
||||||
UNREFERENCED_PARAMETER(DeviceObject);
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
__try
|
|
||||||
{
|
|
||||||
// Complete IRP
|
// Complete IRP
|
||||||
TCCompleteDiskIrp(workItem->Irp, workItem->Status, workItem->Information);
|
TCCompleteDiskIrp(workItem->Irp, workItem->Status, workItem->Information);
|
||||||
|
|
||||||
@@ -359,10 +357,6 @@ static VOID CompleteIrpWorkItemRoutine(PDEVICE_OBJECT DeviceObject, PVOID Contex
|
|||||||
|
|
||||||
if (InterlockedDecrement(&queue->ActiveWorkItems) == 0)
|
if (InterlockedDecrement(&queue->ActiveWorkItems) == 0)
|
||||||
KeSetEvent(&queue->NoActiveWorkItemsEvent, IO_DISK_INCREMENT, FALSE);
|
KeSetEvent(&queue->NoActiveWorkItemsEvent, IO_DISK_INCREMENT, FALSE);
|
||||||
}
|
|
||||||
__finally
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper: acquire a completion work item (from pool if available, else elastic allocation)
|
// Helper: acquire a completion work item (from pool if available, else elastic allocation)
|
||||||
|
|||||||
Reference in New Issue
Block a user