From: Matteo Bruni mbruni@codeweavers.com
--- dlls/nsiproxy.sys/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/nsiproxy.sys/device.c b/dlls/nsiproxy.sys/device.c index 3e806ca9835..a101f8d11ec 100644 --- a/dlls/nsiproxy.sys/device.c +++ b/dlls/nsiproxy.sys/device.c @@ -291,7 +291,7 @@ static NTSTATUS handle_send_echo( IRP *irp ) return status; } IoSetCancelRoutine( irp, icmp_echo_cancel ); - if (irp->Cancel && !IoSetCancelRoutine( irp, NULL )) + if (irp->Cancel && IoSetCancelRoutine( irp, NULL )) { /* IRP was canceled before we set cancel routine */ return STATUS_CANCELLED; @@ -366,7 +366,7 @@ static NTSTATUS nsiproxy_change_notification( IRP *irp )
EnterCriticalSection( &nsiproxy_cs ); IoSetCancelRoutine( irp, change_notification_cancel ); - if (irp->Cancel && !IoSetCancelRoutine( irp, NULL )) + if (irp->Cancel && IoSetCancelRoutine( irp, NULL )) { /* IRP was canceled before we set cancel routine */ InitializeListHead( &irp->Tail.Overlay.ListEntry );