Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Mouse {
pub fn get_position(&self) -> Result<Point, Box<dyn std::error::Error>> {
let mut pos: POINT = POINT { x: 0, y: 0 };
unsafe {
let get_cursor_pos: libloading::Symbol<unsafe extern "C" fn(lp_point: &POINT) -> bool> =
let get_cursor_pos: libloading::Symbol<unsafe extern "C" fn(lp_point: &mut POINT) -> bool> =
self.user32.get(b"GetCursorPos")?;
get_cursor_pos(&mut pos);
Ok(pos.into())
Expand Down