Skip to content

Commit e4e64a0

Browse files
committed
Extern blocks must be unsafe
1 parent 2c354e8 commit e4e64a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win_bindings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
clippy::upper_case_acronyms
77
)]
88
#[link(name = "ntdll", kind = "raw-dylib")]
9-
extern "system" {
9+
unsafe extern "system" {
1010
#[link_name = "NtClose"]
1111
pub fn nt_close(handle: Handle) -> Ntstatus;
1212
#[link_name = "NtOpenProcess"]

0 commit comments

Comments
 (0)