diff --git a/reactos/drivers/input/kbdclass/kbdclass.c b/reactos/drivers/input/kbdclass/kbdclass.c index 0b84940a286..8a7897fc507 100644 --- a/reactos/drivers/input/kbdclass/kbdclass.c +++ b/reactos/drivers/input/kbdclass/kbdclass.c @@ -797,10 +797,10 @@ ClassStartIo( /* Go to next packet and complete this request */ Irp->IoStatus.Status = Status; - IoCompleteRequest(Irp, IO_KEYBOARD_INCREMENT); - - IoStartNextPacket(DeviceObject, FALSE); KeReleaseSpinLock(&DeviceExtension->SpinLock, oldIrql); + + IoCompleteRequest(Irp, IO_KEYBOARD_INCREMENT); + IoStartNextPacket(DeviceObject, FALSE); } else { diff --git a/reactos/drivers/input/mouclass/mouclass.c b/reactos/drivers/input/mouclass/mouclass.c index a49074b651a..9e39b986b40 100644 --- a/reactos/drivers/input/mouclass/mouclass.c +++ b/reactos/drivers/input/mouclass/mouclass.c @@ -773,10 +773,10 @@ ClassStartIo( /* Go to next packet and complete this request */ Irp->IoStatus.Status = Status; - IoCompleteRequest(Irp, IO_MOUSE_INCREMENT); - - IoStartNextPacket(DeviceObject, FALSE); KeReleaseSpinLock(&DeviceExtension->SpinLock, oldIrql); + + IoCompleteRequest(Irp, IO_MOUSE_INCREMENT); + IoStartNextPacket(DeviceObject, FALSE); } else {