Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb3f60f

Browse files
committedJul 15, 2024
Fix Windows 7
1 parent decdb06 commit bb3f60f

File tree

1 file changed

+4
-4
lines changed
  • std/src/sys/pal/windows

1 file changed

+4
-4
lines changed
 

‎std/src/sys/pal/windows/c.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -390,18 +390,18 @@ compat_fn_with_fallback! {
390390
#[cfg(target_vendor = "win7")]
391391
pub fn NtReleaseKeyedEvent(
392392
EventHandle: HANDLE,
393-
Key: *mut c_void,
393+
Key: *const c_void,
394394
Alertable: BOOLEAN,
395-
Timeout: *mut c_longlong
395+
Timeout: *mut i64
396396
) -> NTSTATUS {
397397
panic!("keyed events not available")
398398
}
399399
#[cfg(target_vendor = "win7")]
400400
pub fn NtWaitForKeyedEvent(
401401
EventHandle: HANDLE,
402-
Key: *mut c_void,
402+
Key: *const c_void,
403403
Alertable: BOOLEAN,
404-
Timeout: *mut c_longlong
404+
Timeout: *mut i64
405405
) -> NTSTATUS {
406406
panic!("keyed events not available")
407407
}

0 commit comments

Comments
 (0)
Failed to load comments.