1
Fork 0

Correct calling convention

This commit is contained in:
Chris Denton 2022-04-04 19:37:11 +01:00
parent 62f37da611
commit cbbcd875e1
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
2 changed files with 2 additions and 2 deletions

View file

@ -326,7 +326,7 @@ impl Default for IO_STATUS_BLOCK {
}
}
pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "C" fn(
pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "system" fn(
dwErrorCode: DWORD,
dwNumberOfBytesTransfered: DWORD,
lpOverlapped: *mut OVERLAPPED,

View file

@ -282,7 +282,7 @@ impl AnonPipe {
}
// STEP 3: The callback.
unsafe extern "C" fn callback(
unsafe extern "system" fn callback(
dwErrorCode: u32,
dwNumberOfBytesTransfered: u32,
lpOverlapped: *mut c::OVERLAPPED,