From d01dc72d972c8fd9b9a529a173853ceffbee0574 Mon Sep 17 00:00:00 2001 From: Yoh Deadfall Date: Thu, 31 Oct 2024 02:32:14 +0300 Subject: [PATCH] Fixed a typo in the GetThreadDescription shim --- src/shims/windows/foreign_items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shims/windows/foreign_items.rs b/src/shims/windows/foreign_items.rs index dee778876f..e41ff02254 100644 --- a/src/shims/windows/foreign_items.rs +++ b/src/shims/windows/foreign_items.rs @@ -523,7 +523,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> { let thread = match Handle::from_scalar(handle, this)? { Some(Handle::Thread(thread)) => thread, Some(Handle::Pseudo(PseudoHandle::CurrentThread)) => this.active_thread(), - _ => this.invalid_handle("SetThreadDescription")?, + _ => this.invalid_handle("GetThreadDescription")?, }; // Looks like the default thread name is empty. let name = this.get_thread_name(thread).unwrap_or(b"").to_owned();