Skip to content

Commit

Permalink
fix windows test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wrock <matt@mattwrock.com>
  • Loading branch information
mwrock authored and Jason Heath committed Feb 22, 2023
1 parent b118274 commit 25d151f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/win-users/src/sid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl Sid {
let mut buffer =
Vec::<std::mem::MaybeUninit<u8>>::with_capacity(dw_buffer_size as usize);
buffer.set_len(dw_buffer_size as usize);
let p_token_user: PTOKEN_USER = std::mem::transmute_copy(&buffer);
let p_token_user = buffer.as_mut_ptr() as PTOKEN_USER;

cvt(GetTokenInformation(token,
TokenUser,
Expand Down

0 comments on commit 25d151f

Please sign in to comment.