diff --git a/src/windows/winapi.rs b/src/windows/winapi.rs index 3a6c399..95e0f15 100644 --- a/src/windows/winapi.rs +++ b/src/windows/winapi.rs @@ -20,7 +20,7 @@ use platform::winapi::winapi::shared::{hidclass, hidpi, hidusage}; use platform::winapi::winapi::um::{handleapi, setupapi}; #[link(name = "setupapi")] -extern "stdcall" { +extern "system" { fn SetupDiGetClassDevsW( ClassGuid: *const guiddef::GUID, Enumerator: ntdef::PCSTR, @@ -49,7 +49,7 @@ extern "stdcall" { } #[link(name = "hid")] -extern "stdcall" { +extern "system" { fn HidD_GetPreparsedData( HidDeviceObject: ntdef::HANDLE, PreparsedData: *mut hidpi::PHIDP_PREPARSED_DATA,