Skip to content

fix(win32): correct SetCursorPos argument types (#1745) - #1750

Open
OKAN-SOFTWARE wants to merge 2 commits into
java-native-access:masterfrom
OKAN-SOFTWARE:fix/1745-setcursorpos-int-signature
Open

OKAN-SOFTWARE wants to merge 2 commits into
java-native-access:masterfrom
OKAN-SOFTWARE:fix/1745-setcursorpos-int-signature

Conversation

@OKAN-SOFTWARE

Copy link
Copy Markdown

Fixes #1745.

Changes

  • Add SetCursorPos(int, int) to match the Windows API's native parameter types.
  • Preserve the existing long, long overload as deprecated for binary compatibility.
  • Add regression coverage for the correct method signature.
  • Extend the cursor-position test to verify that the Y coordinate is preserved.

Testing

Source changes and regression tests have been reviewed, but runtime tests have not been executed locally.

The existing CI covers Java compilation on Linux and macOS. Verification on 32-bit Windows is still recommended.
stay safe

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User32: SetCursorPos is declared (long, long), but Windows declares (int, int)

1 participant