Skip to content

Commit 0173b44

Browse files
committed
see if this makes a difference on windows (#386)
1 parent d6c6ec6 commit 0173b44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-sec/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ pub mod identity {
7575
.map_err(|_| err("Failed to open process token"))?;
7676

7777
let mut len = 0_u32;
78-
if Security::GetTokenInformation(&handle, Security::TokenUser, std::ptr::null_mut(), 0, &mut len)
78+
if Security::GetTokenInformation(handle, Security::TokenUser, std::ptr::null_mut(), 0, &mut len)
7979
.as_bool()
8080
{
8181
let mut token_user = Security::TOKEN_USER::default();
8282
if Security::GetTokenInformation(
83-
&handle,
83+
handle,
8484
Security::TokenUser,
8585
&mut token_user as *mut _ as *mut std::ffi::c_void,
8686
len,

0 commit comments

Comments
 (0)