Correct calling convention

This commit is contained in:
Chris Denton
2022-04-04 19:37:11 +01:00
parent 62f37da611
commit cbbcd875e1
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,