diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 97e097b7e08..4440c8555c5 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -566,8 +566,8 @@ static Cursor create_xcursor_cursor( Display *display, CURSORICONINFO *ptr ) /* Make sure hotspot is valid */ image->xhot = ptr->ptHotSpot.x; image->yhot = ptr->ptHotSpot.y; - if (image->xhot < 0 || image->xhot >= image->width || - image->yhot < 0 || image->yhot >= image->height) + if (image->xhot >= image->width || + image->yhot >= image->height) { image->xhot = image->width / 2; image->yhot = image->height / 2;