Skip to content

Commit

Permalink
Merge pull request rust-lang#4003 from YohDeadfall/windows-shim-typo
Browse files Browse the repository at this point in the history
Fixed a typo in the GetThreadDescription shim
  • Loading branch information
saethlin authored Oct 31, 2024
2 parents 4ca9c07 + c5e86c4 commit 445a340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/miri/src/shims/windows/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 445a340

Please sign in to comment.