Skip to content

Commit 25d151f

Browse files
mwrockJason Heath
authored and
Jason Heath
committedFeb 22, 2023
fix windows test failures
Signed-off-by: Matt Wrock <matt@mattwrock.com>
1 parent b118274 commit 25d151f

File tree

1 file changed

+1
-1
lines changed
  • components/win-users/src

1 file changed

+1
-1
lines changed
 

‎components/win-users/src/sid.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl Sid {
172172
let mut buffer =
173173
Vec::<std::mem::MaybeUninit<u8>>::with_capacity(dw_buffer_size as usize);
174174
buffer.set_len(dw_buffer_size as usize);
175-
let p_token_user: PTOKEN_USER = std::mem::transmute_copy(&buffer);
175+
let p_token_user = buffer.as_mut_ptr() as PTOKEN_USER;
176176

177177
cvt(GetTokenInformation(token,
178178
TokenUser,

0 commit comments

Comments
 (0)
Please sign in to comment.