https://bugs.winehq.org/show_bug.cgi?id=39516
--- Comment #3 from Piotr Caban piotr.caban@gmail.com --- I'm seeing something strange related to cursor position and screen coordinates. On my computer (under wine) the mouse is always moved 3 pixels off comparing to screen coordinates. For example following code moves mouse to upper left corner of the screen: SetCursorPos(0, 3);
On the other hand following code: SetCursorPos(0, 0); GetCursorPos(&pt); claims to set cursor position to 0,0 but the cursor is not really moved.
This causes mismatch between coordinates returned by GetWindowRect and set by SetCursorPos. Something like this may cause test failures but I don't know if this is the case on your machine.