diff --git a/reactos/ntoskrnl/io/iomgr/iofunc.c b/reactos/ntoskrnl/io/iomgr/iofunc.c index ba3ad3dfe6f..a099503feca 100644 --- a/reactos/ntoskrnl/io/iomgr/iofunc.c +++ b/reactos/ntoskrnl/io/iomgr/iofunc.c @@ -346,7 +346,7 @@ IopDeviceFsIoControl(IN HANDLE DeviceHandle, /* Allocate IRP */ Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE); - if (!Irp) return IopCleanupFailedIrp(FileObject, Event, NULL); + if (!Irp) return IopCleanupFailedIrp(FileObject, EventObject, NULL); /* Setup the IRP */ Irp->UserIosb = IoStatusBlock;