Skip to content

Commit d117c77

Browse files
committed
Fix raw-dylib.rs
1 parent cdf5236 commit d117c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/raw-dylib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
#[cfg(windows)]
66
{
77
#[link(name = "kernel32", kind = "raw-dylib")]
8-
extern "C" {
8+
unsafe extern "C" {
99
fn GetModuleFileNameA(
1010
module: *mut std::ffi::c_void,
1111
filename: *mut u8,

0 commit comments

Comments
 (0)