mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Fix 'RtlGenRandom' argument slots
This commit is contained in:
+2
-2
@@ -756,8 +756,8 @@ fn emulate_foreign_item(
|
||||
}
|
||||
// The actual name of 'RtlGenRandom'
|
||||
"SystemFunction036" => {
|
||||
let ptr = this.read_scalar(args[1])?.to_ptr()?;
|
||||
let len = this.read_scalar(args[2])?.to_usize(this)?;
|
||||
let ptr = this.read_scalar(args[0])?.to_ptr()?;
|
||||
let len = this.read_scalar(args[1])?.to_usize(this)?;
|
||||
|
||||
let data = gen_random(this, len as usize)?;
|
||||
this.memory_mut().get_mut(ptr.alloc_id)?
|
||||
|
||||
Reference in New Issue
Block a user