From 486b1c374b55a090419124c6ca442004096c0c7d Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 4 Jun 2019 09:04:17 +0200 Subject: [PATCH] Simplify NdisMSendNetBufferListsComplete() flags At the time of the NdisMSendNetBufferListsComplete() call, we're always at Dispatch IRQL, because of ctx->TransitionLock being held. Signed-off-by: Simon Rozman --- wintun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wintun.c b/wintun.c index 50e7af9..0b4dd31 100644 --- a/wintun.c +++ b/wintun.c @@ -1538,7 +1538,7 @@ static void TunSendNetBufferLists(NDIS_HANDLE MiniportAdapterContext, NET_BUFFER NDIS_STATUS status; if (!NT_SUCCESS(status = TunCheckForPause(ctx))) { TunSetNBLStatus(NetBufferLists, status); - NdisMSendNetBufferListsComplete(ctx->MiniportAdapterHandle, NetBufferLists, SendFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL ? NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0); + NdisMSendNetBufferListsComplete(ctx->MiniportAdapterHandle, NetBufferLists, NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL); goto cleanup_TunCompletePause; }