From: Sebastian Lackner Subject: Re: [PATCH] hidclass.sys: Use IoSetCompletionRoutine Message-Id: <5657dd33-1d94-b9c3-ba76-2b61c7fcaa01@fds-team.de> Date: Tue, 18 Oct 2016 17:40:26 +0200 In-Reply-To: References: On 18.10.2016 17:07, Aric Stewart wrote: > Signed-off-by: Aric Stewart > --- > dlls/hidclass.sys/device.c | 20 +++++++------------- > dlls/hidclass.sys/main.c | 13 +++++-------- > dlls/hidclass.sys/pnp.c | 10 +++++----- > 3 files changed, 17 insertions(+), 26 deletions(-) Thanks! While you are just at it, could you please also check the two occurances of "if (irp->IoStatus.u.Status == STATUS_PENDING)"? They look wrong to me, the correct way would be to check the return value of IoCallDriver. Also, it looks like call_minidriver is leaking "buffer". Signed-off-by: Sebastian Lackner