user32: Initialize clip rectangle on first use.
This commit is contained in:
parent
f9e5c12019
commit
f9f6a4d5da
|
@ -1577,6 +1577,9 @@ BOOL WINAPI ClipCursor( const RECT *rect )
|
|||
*/
|
||||
BOOL WINAPI GetClipCursor( RECT *rect )
|
||||
{
|
||||
/* If this is first time - initialize the rect */
|
||||
if (IsRectEmpty( &CURSOR_ClipRect )) ClipCursor( NULL );
|
||||
|
||||
return CopyRect( rect, &CURSOR_ClipRect );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue