From dff2d586933614b959cebeae74176ee68e20948b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 23 Aug 2020 17:05:14 +0200 Subject: [PATCH] [NPFS] Set completion routine on the correct IRP in NpTransceive. --- drivers/filesystems/npfs/fsctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/filesystems/npfs/fsctrl.c b/drivers/filesystems/npfs/fsctrl.c index 0c93c8ad1cf..fff67ecd87a 100644 --- a/drivers/filesystems/npfs/fsctrl.c +++ b/drivers/filesystems/npfs/fsctrl.c @@ -566,7 +566,7 @@ NpTransceive(IN PDEVICE_OBJECT DeviceObject, goto Quickie; } - IoSetCompletionRoutine(Irp, NpCompleteTransceiveIrp, NULL, TRUE, TRUE, TRUE); + IoSetCompletionRoutine(NewIrp, NpCompleteTransceiveIrp, NULL, TRUE, TRUE, TRUE); if (BytesWritten) {