Skip to content

Commit b180ea2

Browse files
authored
Merge pull request #4003 from YohDeadfall/windows-shim-typo
Fixed a typo in the GetThreadDescription shim
2 parents f4fb30f + d01dc72 commit b180ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/windows/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
523523
let thread = match Handle::from_scalar(handle, this)? {
524524
Some(Handle::Thread(thread)) => thread,
525525
Some(Handle::Pseudo(PseudoHandle::CurrentThread)) => this.active_thread(),
526-
_ => this.invalid_handle("SetThreadDescription")?,
526+
_ => this.invalid_handle("GetThreadDescription")?,
527527
};
528528
// Looks like the default thread name is empty.
529529
let name = this.get_thread_name(thread).unwrap_or(b"").to_owned();

0 commit comments

Comments
 (0)