Skip to content

Commit 2a62e84

Browse files
committed
fix(windows): link using "system" ABI
1 parent 0c916ae commit 2a62e84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/windows.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,14 @@ mod ffi {
121121
/// Null-terminated UTF-16 encoding of `open`.
122122
pub const OPEN: *const u16 = [111, 112, 101, 110, 0].as_ptr();
123123

124-
#[link(name = "Shell32")]
125-
extern "C" {
124+
extern "system" {
126125
pub fn ShellExecuteW(
127126
hwnd: isize,
128127
lpoperation: *const u16,
129128
lpfile: *const u16,
130129
lpparameters: *const u16,
131130
lpdirectory: *const u16,
132131
nshowcmd: i32,
133-
) -> i32;
132+
) -> isize;
134133
}
135134
}

0 commit comments

Comments
 (0)