Bug: Wrong argument type to some functions (at least AdjustTokenPrivileges
) in 0.40.0
#2034
Labels
bug
Something isn't working
AdjustTokenPrivileges
) in 0.40.0
#2034
Which crate is this about?
windows
Crate version
0.40.0
Summary
AdjustTokenPrivileges
take the wrong argument type for itspreviousstate
parameterThe official windows documentation for
AdjustTokenPrivileges
explicitely mentions this argument is a*mut TOKEN_PRIVILEGES
.When using a
let mut previous_state = TOKEN_PRIVILEGES_DEFAULT
, it's not possible to do something like&mut tp_previous as *mut _ as *mut [u8] as &mut [u8]
because[u8]
is a fat pointer, which cannot be obtained from a thin pointer as&mut TOKEN_PRIVILEGES
Toolchain version/configuration
No response
Reproducible example
No response
Crate manifest
No response
Expected behavior
No response
Actual behavior
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered: