diff --git a/crates/tests/misc/strings/tests/hstring.rs b/crates/tests/misc/strings/tests/hstring.rs index f7f1b3a720..30d3dbc8aa 100644 --- a/crates/tests/misc/strings/tests/hstring.rs +++ b/crates/tests/misc/strings/tests/hstring.rs @@ -267,7 +267,7 @@ fn hstring_compat() -> Result<()> { let mut header: sys::HSTRING_HEADER = std::mem::zeroed(); let mut stack_hstring: sys::HSTRING = std::mem::zeroed(); let hresult = sys::WindowsCreateStringReference( - HSTRING::from("World").as_ptr(), + [87, 111, 114, 108, 100, 0].as_ptr(), 5, &mut header, &mut stack_hstring,