mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:03:02 +00:00
fixed a bug in NtUserClipCursor()
svn path=/trunk/; revision=5841
This commit is contained in:
parent
862a1d3afe
commit
94053da414
1 changed files with 10 additions and 6 deletions
|
@ -250,6 +250,9 @@ NtUserClipCursor(
|
||||||
|
|
||||||
CurInfo = &WinStaObject->SystemCursor;
|
CurInfo = &WinStaObject->SystemCursor;
|
||||||
if(lpRect)
|
if(lpRect)
|
||||||
|
{
|
||||||
|
if((lpRect->right >= lpRect->left) &&
|
||||||
|
(lpRect->bottom >= lpRect->top))
|
||||||
{
|
{
|
||||||
CurInfo->CursorClipInfo.IsClipped = TRUE;
|
CurInfo->CursorClipInfo.IsClipped = TRUE;
|
||||||
CurInfo->CursorClipInfo.Left = lpRect->left;
|
CurInfo->CursorClipInfo.Left = lpRect->left;
|
||||||
|
@ -259,6 +262,7 @@ NtUserClipCursor(
|
||||||
|
|
||||||
MouseMoveCursor(CurInfo->x, CurInfo->y);
|
MouseMoveCursor(CurInfo->x, CurInfo->y);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
WinStaObject->SystemCursor.CursorClipInfo.IsClipped = FALSE;
|
WinStaObject->SystemCursor.CursorClipInfo.IsClipped = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue