[PATCH 2/5] winebus.sys: Remove duplicate LeaveCriticalSection call.
Rémi Bernon
rbernon at codeweavers.com
Thu Aug 12 02:47:00 CDT 2021
Breaking out of the switch will leave it already.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/winebus.sys/main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c
index 713db9c7f27..3d040b1af5b 100644
--- a/dlls/winebus.sys/main.c
+++ b/dlls/winebus.sys/main.c
@@ -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)
--
2.32.0
More information about the wine-devel
mailing list