fix(windows): Rust 2024 requires unsafe extern blocks
Missed in the prior 2024 edition sweep because local builds don't exercise the cfg(target_os = "windows") path. check-windows CI caught it.
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ struct SptwbDirect {
|
|||||||
|
|
||||||
// ── Windows FFI ────────────────────────────────────────────────────────────
|
// ── Windows FFI ────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
extern "system" {
|
unsafe extern "system" {
|
||||||
fn CreateFileW(
|
fn CreateFileW(
|
||||||
lpFileName: *const u16,
|
lpFileName: *const u16,
|
||||||
dwDesiredAccess: u32,
|
dwDesiredAccess: u32,
|
||||||
|
|||||||
Reference in New Issue
Block a user