From 40be8ad797333a9cb6ba3396b1d5c39d69bab4d6 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Thu, 5 Feb 2026 11:31:54 -0800 Subject: [PATCH] fix: add Win32_Security feature and fix HANDLE usage for Windows build --- server/packages/sandbox-agent/Cargo.toml | 2 +- server/packages/sandbox-agent/src/server_logs/windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/packages/sandbox-agent/Cargo.toml b/server/packages/sandbox-agent/Cargo.toml index 5f45ad0..703c87c 100644 --- a/server/packages/sandbox-agent/Cargo.toml +++ b/server/packages/sandbox-agent/Cargo.toml @@ -42,7 +42,7 @@ tempfile = { workspace = true, optional = true } libc = "0.2" [target.'cfg(windows)'.dependencies] -windows = { version = "0.52", features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_Console"] } +windows = { version = "0.52", features = ["Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Console"] } [dev-dependencies] http-body-util.workspace = true diff --git a/server/packages/sandbox-agent/src/server_logs/windows.rs b/server/packages/sandbox-agent/src/server_logs/windows.rs index 8186f4e..07143df 100644 --- a/server/packages/sandbox-agent/src/server_logs/windows.rs +++ b/server/packages/sandbox-agent/src/server_logs/windows.rs @@ -86,7 +86,7 @@ impl ServerLogs { None, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, - HANDLE(std::ptr::null_mut()), + HANDLE::default(), ) .map_err(|err| std::io::Error::new(std::io::ErrorKind::Other, err.to_string()))?;