add/fix some comments
This commit is contained in:
parent
ef3f649e49
commit
7fdd924ce4
@ -292,7 +292,10 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
|
||||
|
||||
let main_ptr = ecx.create_fn_alloc_ptr(FnVal::Instance(entry_instance));
|
||||
|
||||
let sigpipe = 2; // Inlining of `DEFAULT` from https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs
|
||||
// Inlining of `DEFAULT` from
|
||||
// https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs.
|
||||
// Alaways using DEFAULT is okay since we don't support signals in Miri anyway.
|
||||
let sigpipe = 2;
|
||||
|
||||
ecx.call_function(
|
||||
start_instance,
|
||||
|
@ -294,8 +294,8 @@ fn emulate_foreign_item_by_name(
|
||||
let flags = this.read_scalar(flags)?.to_u32()?;
|
||||
match flags {
|
||||
0 => {
|
||||
// BCRYPT_RNG_ALG_HANDLE
|
||||
if algorithm != 0x81 {
|
||||
// BCRYPT_RNG_ALG_HANDLE
|
||||
throw_unsup_format!(
|
||||
"BCryptGenRandom algorithm must be BCRYPT_RNG_ALG_HANDLE when the flag is 0"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user