From 6d18d6a496b7621379c1d25d17a5d1d79e5096a7 Mon Sep 17 00:00:00 2001 From: bicarus-dev <202771338+bicarus-dev@users.noreply.github.com> Date: Tue, 16 Dec 2025 16:47:02 -0800 Subject: [PATCH] troubleshooter: address false positive (#454) ## Link to GitHub Issue, if one exists #447 ## Description of change Allow GetAdaptersInfo to fail with ERROR_BUFFER_OVERFLOW. --- src/spice2x/hooks/networkhook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spice2x/hooks/networkhook.cpp b/src/spice2x/hooks/networkhook.cpp index 7708fe5..65405a1 100644 --- a/src/spice2x/hooks/networkhook.cpp +++ b/src/spice2x/hooks/networkhook.cpp @@ -68,7 +68,7 @@ static ULONG WINAPI GetAdaptersInfo_hook(PIP_ADAPTER_INFO pAdapterInfo, PULONG p free(pAdapterInfo2); } - if (ret != ERROR_SUCCESS) { + if (ret != ERROR_SUCCESS && ret != ERROR_BUFFER_OVERFLOW) { defer_network_adapter_error(); log_warning( "network",