From 1ce090642c13974eef7b83d106c8058fb6cb5bb5 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 23 Sep 2024 13:22:51 -0500 Subject: [PATCH] revert --- crates/tests/misc/strings/tests/hstring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,