Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geetanshjuneja committed Jan 18, 2025
1 parent 9c84da8 commit b68b976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 [handle, name_ptr] = this.check_shim(abi, sys_conv, link_name, args)?;

let handle = this.read_scalar(handle)?;
let name_ptr = this.deref_pointer_as(name_ptr, this.libc_ty_layout("wchar_t"))?; // the pointer where we should store the ptr to the name
let name_ptr = this.deref_pointer(name_ptr)?; // the pointer where we should store the ptr to the name

let thread = match Handle::try_from_scalar(handle, this)? {
Ok(Handle::Thread(thread)) => Ok(thread),
Expand Down

0 comments on commit b68b976

Please sign in to comment.