win32: bug fix - capture-cursor sometimes crashes when mouse moved to screen top