From: Rémi Bernon rbernon@codeweavers.com
Fixes: ebca086ff08f64e01aedbb8a8b1208fd0de00dc6 --- dlls/win32u/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/win32u/input.c b/dlls/win32u/input.c index 8e27a841dd2..9c7a38569a2 100644 --- a/dlls/win32u/input.c +++ b/dlls/win32u/input.c @@ -757,7 +757,7 @@ BOOL get_cursor_pos( POINT *pt )
/* query new position from graphics driver if we haven't updated recently */ if (NtGetTickCount() - last_change > 100) ret = user_driver->pGetCursorPos( pt ); - if (ret) return FALSE; + if (!ret) return FALSE;
SetRect( &rect, pt->x, pt->y, pt->x, pt->y ); dpi = monitor_dpi_from_rect( rect, get_thread_dpi() );