From c4becc5b90ab1b6eb453290f6d979501c5feb43f Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 9 Dec 2019 11:32:18 +0100 Subject: [PATCH] Remove excessive ASSERT Signed-off-by: Simon Rozman --- wintun.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/wintun.c b/wintun.c index 4003621..0944af4 100644 --- a/wintun.c +++ b/wintun.c @@ -556,8 +556,6 @@ TunRegisterBuffers(_Inout_ TUN_CTX *Ctx, _Inout_ IRP *Irp) goto cleanupMutex; Ctx->Device.OwningFileObject = Stack->FileObject; - ASSERT(InterlockedGet(&Ctx->Running)); - TUN_REGISTER_RINGS *Rrb = Irp->AssociatedIrp.SystemBuffer; if (Status = STATUS_INVALID_PARAMETER, Stack->Parameters.DeviceIoControl.InputBufferLength != sizeof(*Rrb)) goto cleanupResetOwner;