Skip to content

Commit

Permalink
fix CreateEnvironmentBlock call
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wrock <matt@mattwrock.com>
  • Loading branch information
mwrock committed Aug 6, 2024
1 parent 93dfa55 commit 5cfeda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/core/src/os/process/windows_child.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ fn create_user_environment(token: HANDLE,
let mut new_env: Vec<u16> = Vec::new();
let mut block = ptr::null_mut();
cvt(Environment::CreateEnvironmentBlock(&mut block,
token as isize,
token as *mut std::ffi::c_void,
FALSE))?;
let mut tail: u32 = MAXDWORD;
let mut offset = 0;
Expand Down

0 comments on commit 5cfeda6

Please sign in to comment.