From 220545ea6e98af9259b66ea3983b51dbf3b2bf1e Mon Sep 17 00:00:00 2001 From: Elaine Houha <38798233+houha2@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:25:29 -0800 Subject: Updating the Windows Filtering Platform Samples to compile correctly on VS2022 (#1089) * ddproxy compiles on VS2022 * inspect compiles on VS2022 * stmEdit compiles on VS2022 * sampler compiles on VS2022 * changes some encodings and updates the stmedit version * restores the vcxproj * more vcxproj fixes * ddproxy inf * stmedit vcxproj pt2 * stmd sln * Update exclusions.csv * all but one flavor compiles on NI EWDK * found a bug in an assert * Builds clean for all drivers except WfpSampler on both WDK 17.1.5 and 17.8.2, WFPSampler changes get it to build on WDK 17.1.5 but there are still issues with 17.8.2 --------- Co-authored-by: Elaine Houha Co-authored-by: JakobL-MSFT <110699333+JakobL-MSFT@users.noreply.github.com> --- .../sys/CompletionFunctions_BasicStreamInjectionCallouts.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'network/trans/WFPSampler/sys/CompletionFunctions_BasicStreamInjectionCallouts.cpp') diff --git a/network/trans/WFPSampler/sys/CompletionFunctions_BasicStreamInjectionCallouts.cpp b/network/trans/WFPSampler/sys/CompletionFunctions_BasicStreamInjectionCallouts.cpp index 34dcc81d..7145b5ed 100644 --- a/network/trans/WFPSampler/sys/CompletionFunctions_BasicStreamInjectionCallouts.cpp +++ b/network/trans/WFPSampler/sys/CompletionFunctions_BasicStreamInjectionCallouts.cpp @@ -139,7 +139,9 @@ VOID NTAPI CompleteBasicStreamInjection(_In_ VOID* pContext, NT_ASSERT(pContext); NT_ASSERT(pNetBufferList); NT_ASSERT(NT_SUCCESS(pNetBufferList->Status) || - pNetBufferList->Status == STATUS_CONNECTION_ABORTED); + pNetBufferList->Status == STATUS_CONNECTION_ABORTED || + pNetBufferList->Status == STATUS_CONNECTION_RESET || + pNetBufferList->Status == STATUS_INVALID_DEVICE_STATE); if(pNetBufferList->Status != STATUS_SUCCESS) DbgPrintEx(DPFLTR_IHVNETWORK_ID, -- cgit v1.3.1