Skip to content

Commit

Permalink
Correct calling convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Apr 4, 2022
1 parent 62f37da commit cbbcd87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cbbcd87

Please sign in to comment.