fix: add Win32_Security feature and fix HANDLE usage for Windows build

This commit is contained in:
Nathan Flurry 2026-02-05 11:31:54 -08:00
parent 0cd97b9ad1
commit 40be8ad797
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

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