winebus.sys: Remove duplicate LeaveCriticalSection call.
Breaking out of the switch will leave it already. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
199f689ff1
commit
2d7fa05ce4
|
@ -927,7 +927,6 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
|||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
irp->IoStatus.u.Status = status;
|
||||
LeaveCriticalSection(&ext->cs);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -946,7 +945,6 @@ static NTSTATUS WINAPI hid_internal_dispatch(DEVICE_OBJECT *device, IRP *irp)
|
|||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
irp->IoStatus.u.Status = status;
|
||||
LeaveCriticalSection(&ext->cs);
|
||||
break;
|
||||
}
|
||||
if (!ext->last_report_read)
|
||||
|
|
Loading…
Reference in New Issue