fix(hook): preserve WinSock connect errors

This commit is contained in:
funman300
2026-08-21 00:16:49 +00:00
parent b098617573
commit 44ebc4b23c
3 changed files with 64 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
#![cfg(windows)]
#![allow(dead_code)]
// Compile the production connect hook directly into an executable test target.
// The hook crate itself is a cdylib, whose unit-test artifact remains a DLL and
// therefore cannot be executed by the native Windows test runner.
fn write_log(_: &str) {}
#[path = "../src/connect_hook.rs"]
mod connect_hook;