[Git][wine/wine][master] win32u: Fix signed coordinate extraction in drag_drop_call.
Alexandre Julliard pushed to branch master at wine / wine Commits: e45f9ad9 by Zhengyong Chen at 2026-06-12T20:49:45+02:00 win32u: Fix signed coordinate extraction in drag_drop_call. Xdnd protocol uses 16-bit signed coordinates for mouse position. When the cursor is on a secondary monitor left of the primary, coordinates are negative. LOWORD/HIWORD extract the low 16 bits as unsigned, causing sign loss when assigning to RECT fields. Fix by casting LOWORD/HIWORD result to SHORT before assignment, ensuring proper sign extension on both 32-bit and 64-bit Wine. Signed-off-by: chenzhengyong <chenzhengyong@uniontech.com> - - - - - 1 changed file: - dlls/win32u/clipboard.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/e45f9ad9bdcfd88140319e51f59861c... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/e45f9ad9bdcfd88140319e51f59861c... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help
participants (1)
-
Alexandre Julliard (@julliard)