Skip to content

Commit 8e5e68f

Browse files
committed
Adapt gix-sec to changes in windows-sys
Bumping the `windows-sys` dependency of `gix-sec` from 0.52.0 to 0.59.9 broke a Windows API function call that passed a literal `0` for a null handle, because the interface became a bit more strongly typed. This changes the argument to `std::ptr::null_mut()`.
1 parent 68e6b2e commit 8e5e68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: gix-sec/src/identity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ mod impl_ {
200200
}
201201

202202
let mut is_member = 0;
203-
if CheckTokenMembership(0, token_owner, &mut is_member) == 0 {
203+
if CheckTokenMembership(std::ptr::null_mut(), token_owner, &mut is_member) == 0 {
204204
error!("Couldn't check if user is an administrator");
205205
}
206206

0 commit comments

Comments
 (0)