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()))?;