diff --git a/src/sys/windows.rs b/src/sys/windows.rs index 7bfe761..f92097c 100644 --- a/src/sys/windows.rs +++ b/src/sys/windows.rs @@ -113,7 +113,7 @@ impl Mouse { pub fn get_position(&self) -> Result> { let mut pos: POINT = POINT { x: 0, y: 0 }; unsafe { - let get_cursor_pos: libloading::Symbol bool> = + let get_cursor_pos: libloading::Symbol bool> = self.user32.get(b"GetCursorPos")?; get_cursor_pos(&mut pos); Ok(pos.into())